From d60b2a7322b68407744707174d78402e43bff394 Mon Sep 17 00:00:00 2001 From: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> Date: Tue, 30 Apr 2024 21:35:11 +0200 Subject: Fix: Mob Detection Broke with Skytils (#1605) --- src/main/java/at/hannibal2/skyhanni/data/mob/MobDetection.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni') 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 80eee1f2d..6497fddfb 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/mob/MobDetection.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/mob/MobDetection.kt @@ -27,9 +27,9 @@ import net.minecraft.entity.monster.EntityCreeper import net.minecraft.entity.passive.EntityBat import net.minecraft.entity.passive.EntityVillager import net.minecraft.entity.player.EntityPlayer +import net.minecraft.network.play.server.S01PacketJoinGame import net.minecraft.network.play.server.S0CPacketSpawnPlayer import net.minecraft.network.play.server.S0FPacketSpawnMob -import net.minecraft.network.play.server.S37PacketStatistics import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import net.minecraftforge.fml.common.network.FMLNetworkEvent import java.util.concurrent.ConcurrentLinkedQueue @@ -314,7 +314,7 @@ class MobDetection { is S0FPacketSpawnMob -> addEntityUpdate(packet.entityID) is S0CPacketSpawnPlayer -> addEntityUpdate(packet.entityID) // is S0EPacketSpawnObject -> addEntityUpdate(packet.entityID) - is S37PacketStatistics -> // one of the first packets that is sent when switching servers inside the BungeeCord Network (please some prove this, I just found it out via Testing) + is S01PacketJoinGame -> // one of the first packets that is sent when switching servers inside the BungeeCord Network (please some prove this, I just found it out via Testing) { shouldClear.set(true) allEntitiesViaPacketId.clear() -- cgit