Removed dead entities from our map.

This commit is contained in:
Brianna 2019-12-16 18:14:41 -05:00
parent 6c603e67eb
commit 2b13de19a6

View File

@ -110,6 +110,8 @@ public class EntityStack {
}
private void handleWholeStackDeath(LivingEntity killed, List<Drop> drops, boolean custom, int droppedExp, EntityDeathEvent event) {
UltimateStacker.getInstance().getEntityStackManager().removeStack(event.getEntity());
Location killedLocation = killed.getLocation();
List<Drop> preStackedDrops = new ArrayList<>();
for (int i = 1; i < amount; i++) {