From 30b3b6951ca9a29dd0ba27e0f34efad3b05a4aa4 Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Wed, 6 Mar 2024 19:44:41 +1100 Subject: Backend: Use more isInIsland (#1107) --- .../at/hannibal2/skyhanni/features/chat/ArachneChatMessageHider.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/chat') diff --git a/src/main/java/at/hannibal2/skyhanni/features/chat/ArachneChatMessageHider.kt b/src/main/java/at/hannibal2/skyhanni/features/chat/ArachneChatMessageHider.kt index 57a9a5f9e..0986caa70 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/chat/ArachneChatMessageHider.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/chat/ArachneChatMessageHider.kt @@ -4,6 +4,7 @@ import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.data.IslandType import at.hannibal2.skyhanni.events.LorenzChatEvent import at.hannibal2.skyhanni.utils.LorenzUtils +import at.hannibal2.skyhanni.utils.LorenzUtils.isInIsland import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher import at.hannibal2.skyhanni.utils.repopatterns.RepoPattern import net.minecraftforge.fml.common.eventhandler.SubscribeEvent @@ -30,7 +31,6 @@ class ArachneChatMessageHider { @SubscribeEvent fun onChat(event: LorenzChatEvent) { if (!isEnabled()) return - if (LorenzUtils.skyBlockIsland != IslandType.SPIDER_DEN) return if (LorenzUtils.skyBlockArea == "Arachne's Sanctuary") return if (shouldHide(event.message)) { @@ -61,5 +61,5 @@ class ArachneChatMessageHider { return hideArachneDeadMessage } - fun isEnabled() = LorenzUtils.inSkyBlock && config.hideArachneMessages + fun isEnabled() = IslandType.SPIDER_DEN.isInIsland() && config.hideArachneMessages } -- cgit