diff options
| author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2024-08-04 01:51:03 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-03 17:51:03 +0200 |
| commit | 24ff8316f1b43db4dca47bb1fba529e69d0d72df (patch) | |
| tree | fa3d261e2b98ebb3c09a2f3fb2c83e360b6e0bbb /src/main/kotlin/io/github | |
| parent | effe46a69d26d05b5f4d9360b92414e1cee7b387 (diff) | |
| download | notenoughupdates-24ff8316f1b43db4dca47bb1fba529e69d0d72df.tar.gz notenoughupdates-24ff8316f1b43db4dca47bb1fba529e69d0d72df.tar.bz2 notenoughupdates-24ff8316f1b43db4dca47bb1fba529e69d0d72df.zip | |
Fix Pet info overlay skill gain (#1202)
Co-authored-by: Linnea Gräf <nea@nea.moe>
Co-authored-by: Lulonaut <lulonaut@lulonaut.dev>
Diffstat (limited to 'src/main/kotlin/io/github')
2 files changed, 5 insertions, 1 deletions
diff --git a/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/tablisttutorial/TablistAPI.kt b/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/tablisttutorial/TablistAPI.kt index 756412a8..e25c052a 100644 --- a/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/tablisttutorial/TablistAPI.kt +++ b/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/tablisttutorial/TablistAPI.kt @@ -148,6 +148,7 @@ object TablistAPI { PROFILE(Regex("Profile: ([A-Za-z]+)( .*)?")), ACTIVE_EFFECTS(Regex("Active Effects(: \\(\\d+\\))?")), COOKIE_BUFF(Regex("Cookie Buff")), + PET(null), ; override fun toString(): String { diff --git a/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/tablisttutorial/TablistTaskQueue.kt b/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/tablisttutorial/TablistTaskQueue.kt index 8cbd27a0..ccefc761 100644 --- a/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/tablisttutorial/TablistTaskQueue.kt +++ b/src/main/kotlin/io/github/moulberry/notenoughupdates/miscfeatures/tablisttutorial/TablistTaskQueue.kt @@ -20,12 +20,15 @@ package io.github.moulberry.notenoughupdates.miscfeatures.tablisttutorial import io.github.moulberry.notenoughupdates.util.NotificationHandler +import io.github.moulberry.notenoughupdates.util.SBInfo object TablistTaskQueue { private val queue = mutableListOf<TablistTutorial.TabListWidget>() + private val blacklistedLocations = setOf("dungeon", "kuudra") + fun addToQueue(task: TablistTutorial.TabListWidget, showNotification: Boolean) { - if (showNotification && !queueContainsElements()) { + if (showNotification && !queueContainsElements() && !blacklistedLocations.contains(SBInfo.getInstance().mode)) { NotificationHandler.displayNotification( listOf( "§l§4Widget missing", |
