From d58dfb57cc78d0a73b81a58e01b6e17899355924 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 31 Jan 2024 19:03:41 +0100 Subject: replace onChatMessage with onChat --- .../java/at/hannibal2/skyhanni/features/fishing/SeaCreatureManager.kt | 2 +- .../java/at/hannibal2/skyhanni/features/fishing/SharkFishCounter.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/fishing') diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureManager.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureManager.kt index 022e9d302..5843bb97c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureManager.kt @@ -13,7 +13,7 @@ class SeaCreatureManager { private var doubleHook = false @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (!LorenzUtils.inSkyBlock) return if (doubleHookMessages.contains(event.message)) { if (SkyHanniMod.feature.fishing.compactDoubleHook) { diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/SharkFishCounter.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/SharkFishCounter.kt index 6e98cd134..f84a72d53 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/fishing/SharkFishCounter.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/SharkFishCounter.kt @@ -45,7 +45,7 @@ class SharkFishCounter { } @SubscribeEvent - fun onChatMessage(event: LorenzChatEvent) { + fun onChat(event: LorenzChatEvent) { if (event.message != "§b§lFISHING FESTIVAL §r§eThe festival has concluded! Time to dry off and repair your rods!") return val count = counter.sum() if (count == 0) return -- cgit