diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-08 09:33:15 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-10-08 09:33:15 +0200 |
commit | 7ffb72cae177939d52d022da97c67b14a46c3ed9 (patch) | |
tree | ea70b573dfe1fd4949b797ee1e866b57e06156e9 /src/main/java/at/hannibal2/skyhanni | |
parent | b8eba5c1dcbe1fad4cdbd33ecc9d736ee3bd30a5 (diff) | |
download | skyhanni-7ffb72cae177939d52d022da97c67b14a46c3ed9.tar.gz skyhanni-7ffb72cae177939d52d022da97c67b14a46c3ed9.tar.bz2 skyhanni-7ffb72cae177939d52d022da97c67b14a46c3ed9.zip |
Fixed fishing hook display data not properly resetting on world change.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/fishing/FishingHookDisplay.kt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingHookDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingHookDisplay.kt index ec986f82e..1ecfa75c7 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingHookDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingHookDisplay.kt @@ -4,6 +4,7 @@ import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.events.CheckRenderEntityEvent import at.hannibal2.skyhanni.events.GuiRenderEvent import at.hannibal2.skyhanni.events.LorenzTickEvent +import at.hannibal2.skyhanni.events.LorenzWorldChangeEvent import at.hannibal2.skyhanni.utils.EntityUtils import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.LorenzVec @@ -23,6 +24,13 @@ class FishingHookDisplay { private var display = "" @SubscribeEvent + fun onWorldChange(event: LorenzWorldChangeEvent) { + display = "" + bobberLocation = null + armorStand = null + } + + @SubscribeEvent fun onTick(event: LorenzTickEvent) { if (!isEnabled()) return if (!event.repeatSeconds(1)) return |