diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2024-06-05 22:32:03 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-05 14:32:03 +0200 |
commit | 406eaec8bd9e7ca630d1f79ffe2ddda8493778eb (patch) | |
tree | 1a3688b0629a924908476dc4787221596e92a0a4 /src/main/java/at/hannibal2/skyhanni/data/mob | |
parent | e61f260fa2a094a43ebe1ab3d3305874dee6b716 (diff) | |
download | skyhanni-406eaec8bd9e7ca630d1f79ffe2ddda8493778eb.tar.gz skyhanni-406eaec8bd9e7ca630d1f79ffe2ddda8493778eb.tar.bz2 skyhanni-406eaec8bd9e7ca630d1f79ffe2ddda8493778eb.zip |
Fix: Crash and use less forge events (#1986)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/mob')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/mob/MobDetection.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/mob/MobDetection.kt b/src/main/java/at/hannibal2/skyhanni/data/mob/MobDetection.kt index a521e2354..f85e63420 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/mob/MobDetection.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/mob/MobDetection.kt @@ -11,6 +11,7 @@ import at.hannibal2.skyhanni.events.EntityHealthUpdateEvent import at.hannibal2.skyhanni.events.LorenzTickEvent import at.hannibal2.skyhanni.events.MobEvent import at.hannibal2.skyhanni.events.PacketEvent +import at.hannibal2.skyhanni.events.minecraft.ClientDisconnectEvent import at.hannibal2.skyhanni.utils.CollectionUtils.drainForEach import at.hannibal2.skyhanni.utils.CollectionUtils.drainTo import at.hannibal2.skyhanni.utils.CollectionUtils.put @@ -31,7 +32,6 @@ import net.minecraft.network.play.server.S01PacketJoinGame import net.minecraft.network.play.server.S0CPacketSpawnPlayer import net.minecraft.network.play.server.S0FPacketSpawnMob import net.minecraftforge.fml.common.eventhandler.SubscribeEvent -import net.minecraftforge.fml.common.network.FMLNetworkEvent import java.util.concurrent.ConcurrentLinkedQueue import java.util.concurrent.atomic.AtomicBoolean @@ -331,7 +331,7 @@ class MobDetection { } @SubscribeEvent - fun onDisconnect(event: FMLNetworkEvent.ClientDisconnectionFromServerEvent) { + fun onDisconnect(event: ClientDisconnectEvent) { shouldClear.set(true) } |