From 6a3fe70fff8c617e59775c353f37a48273b7962a Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 16 Sep 2022 11:38:54 +0200 Subject: workaround to properly hide potion message in dungeon --- .../java/at/hannibal2/skyhanni/features/dungeon/DungeonChatFilter.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni') 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) -- cgit