From 2b13de19a60ae61d7cc9306c3a8c45a40b513b1f Mon Sep 17 00:00:00 2001 From: Brianna Date: Mon, 16 Dec 2019 18:14:41 -0500 Subject: [PATCH] Removed dead entities from our map. --- .../java/com/songoda/ultimatestacker/entity/EntityStack.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/songoda/ultimatestacker/entity/EntityStack.java b/src/main/java/com/songoda/ultimatestacker/entity/EntityStack.java index 7c418be..8c574da 100644 --- a/src/main/java/com/songoda/ultimatestacker/entity/EntityStack.java +++ b/src/main/java/com/songoda/ultimatestacker/entity/EntityStack.java @@ -110,6 +110,8 @@ public class EntityStack { } private void handleWholeStackDeath(LivingEntity killed, List drops, boolean custom, int droppedExp, EntityDeathEvent event) { + UltimateStacker.getInstance().getEntityStackManager().removeStack(event.getEntity()); + Location killedLocation = killed.getLocation(); List preStackedDrops = new ArrayList<>(); for (int i = 1; i < amount; i++) {