aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-17 22:19:21 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-17 22:19:21 +0100
commit9b489cf827aacd0dccf079793e2e74b0b4d9aa51 (patch)
tree7702581347bcd0a36914d89cba248dfc1c2f2657 /src/main/java
parent6336b78e1800a483b16bc8782db19d342f12252c (diff)
downloadskyhanni-9b489cf827aacd0dccf079793e2e74b0b4d9aa51.tar.gz
skyhanni-9b489cf827aacd0dccf079793e2e74b0b4d9aa51.tar.bz2
skyhanni-9b489cf827aacd0dccf079793e2e74b0b4d9aa51.zip
code cleanup
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/FixGhostEntities.kt8
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) {