From 9b489cf827aacd0dccf079793e2e74b0b4d9aa51 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 17 Jan 2024 22:19:21 +0100 Subject: code cleanup --- .../java/at/hannibal2/skyhanni/features/misc/FixGhostEntities.kt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/FixGhostEntities.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/FixGhostEntities.kt index dc8c267ee..acd68022c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/FixGhostEntities.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/FixGhostEntities.kt @@ -34,15 +34,11 @@ object FixGhostEntities { if (packet.entityID in recentlyRemovedEntities) { event.cancel() } - } - - if (packet is S0FPacketSpawnMob) { + } else if (packet is S0FPacketSpawnMob) { if (packet.entityID in recentlyRemovedEntities) { event.cancel() } - } - - if (packet is S13PacketDestroyEntities) { + } else if (packet is S13PacketDestroyEntities) { for (entityID in packet.entityIDs) { recentlyRemovedEntities.add(entityID) if (recentlyRemovedEntities.size == 10) { -- cgit