diff options
| author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2024-03-06 19:44:41 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-06 09:44:41 +0100 |
| commit | 30b3b6951ca9a29dd0ba27e0f34efad3b05a4aa4 (patch) | |
| tree | aed7083057192eed264f3edc614e5aaae7e2cf28 /src/main/java/at/hannibal2/skyhanni/features/chat | |
| parent | 82a00ed51d55d2be7d65d24c2e93e797cab33864 (diff) | |
| download | skyhanni-30b3b6951ca9a29dd0ba27e0f34efad3b05a4aa4.tar.gz skyhanni-30b3b6951ca9a29dd0ba27e0f34efad3b05a4aa4.tar.bz2 skyhanni-30b3b6951ca9a29dd0ba27e0f34efad3b05a4aa4.zip | |
Backend: Use more isInIsland (#1107)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/chat')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/chat/ArachneChatMessageHider.kt | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |
