From 59153335492f16d1220e2ce6057bfa5c204c4e0d Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 18 Jan 2024 16:14:10 +0100 Subject: code cleanup --- src/main/java/at/hannibal2/skyhanni/features/misc/FixGhostEntities.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 acd68022c..bb273efe7 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/FixGhostEntities.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/FixGhostEntities.kt @@ -40,7 +40,7 @@ object FixGhostEntities { } } else if (packet is S13PacketDestroyEntities) { for (entityID in packet.entityIDs) { - recentlyRemovedEntities.add(entityID) + recentlyRemovedEntities.addLast(entityID) if (recentlyRemovedEntities.size == 10) { recentlyRemovedEntities.removeFirst() } -- cgit