mirror of
https://github.com/songoda/UltimateStacker.git
synced 2025-01-05 23:37:44 +01:00
Removed dead entities from our map.
This commit is contained in:
parent
6c603e67eb
commit
2b13de19a6
@ -110,6 +110,8 @@ public class EntityStack {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void handleWholeStackDeath(LivingEntity killed, List<Drop> drops, boolean custom, int droppedExp, EntityDeathEvent event) {
|
private void handleWholeStackDeath(LivingEntity killed, List<Drop> drops, boolean custom, int droppedExp, EntityDeathEvent event) {
|
||||||
|
UltimateStacker.getInstance().getEntityStackManager().removeStack(event.getEntity());
|
||||||
|
|
||||||
Location killedLocation = killed.getLocation();
|
Location killedLocation = killed.getLocation();
|
||||||
List<Drop> preStackedDrops = new ArrayList<>();
|
List<Drop> preStackedDrops = new ArrayList<>();
|
||||||
for (int i = 1; i < amount; i++) {
|
for (int i = 1; i < amount; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user