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
commit6a3fe70fff8c617e59775c353f37a48273b7962a (patch)
tree0efb0237d8b7905e9724d28a053efacb093437ce
parentcf0237a27dee5a64c62247165548b50af77b20dc (diff)
downloadskyhanni-6a3fe70fff8c617e59775c353f37a48273b7962a.tar.gz
skyhanni-6a3fe70fff8c617e59775c353f37a48273b7962a.tar.bz2
skyhanni-6a3fe70fff8c617e59775c353f37a48273b7962a.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)