diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-01-17 22:19:21 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-01-17 22:19:21 +0100 |
commit | 9b489cf827aacd0dccf079793e2e74b0b4d9aa51 (patch) | |
tree | 7702581347bcd0a36914d89cba248dfc1c2f2657 /src/main | |
parent | 6336b78e1800a483b16bc8782db19d342f12252c (diff) | |
download | skyhanni-9b489cf827aacd0dccf079793e2e74b0b4d9aa51.tar.gz skyhanni-9b489cf827aacd0dccf079793e2e74b0b4d9aa51.tar.bz2 skyhanni-9b489cf827aacd0dccf079793e2e74b0b4d9aa51.zip |
code cleanup
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) { |