aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-09-16 11:38:54 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-09-16 11:38:54 +0200
commit0fdfe413ee71c341fcd8cd5261e66379e7adf400 (patch)
tree0efb0237d8b7905e9724d28a053efacb093437ce
parent70f755d59c24e078c166b0b1c278b88039cba1c1 (diff)
downloadSkyHanni-0fdfe413ee71c341fcd8cd5261e66379e7adf400.tar.gz
SkyHanni-0fdfe413ee71c341fcd8cd5261e66379e7adf400.tar.bz2
SkyHanni-0fdfe413ee71c341fcd8cd5261e66379e7adf400.zip
workaround to properly hide potion message in dungeon
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonChatFilter.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonChatFilter.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonChatFilter.kt
index 031cf41f5..1724c074e 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonChatFilter.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonChatFilter.kt
@@ -10,8 +10,10 @@ class DungeonChatFilter {
@SubscribeEvent
fun onChatMessage(event: LorenzChatEvent) {
- if (!LorenzUtils.inSkyblock) return
+ if (!LorenzUtils.isOnHypixel) return
+ // Workaround since the potion message gets always sent in that moment when skyblock is set as false
+ if (!LorenzUtils.inSkyblock && !event.message.startsWith("§aYour active Potion Effects")) return
if (!SkyHanniMod.feature.chat.dungeonMessages) return
val blockReason = block(event.message)