diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/FixGhostEntities.kt | 8 |
1 files changed, 2 insertions, 6 deletions
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) { |