another try at fixing CME in metalclips

This commit is contained in:
PhanaticD 2019-01-21 03:56:51 -05:00
parent a1866b7c1c
commit c06c3637fe

View file

@ -436,15 +436,13 @@ public class MetalClips extends MetalAbility {
this.dropIngots(e.getLocation(), ii.getItemStack().getAmount()); this.dropIngots(e.getLocation(), ii.getItemStack().getAmount());
this.remove(); this.remove();
} }
it.remove();
ii.remove(); ii.remove();
break; break;
} }
} }
} }
} }
this.removeDeadIngots();
} }
public void dropIngots(final Location loc) { public void dropIngots(final Location loc) {
@ -456,10 +454,6 @@ public class MetalClips extends MetalAbility {
i.setPickupDelay(61); i.setPickupDelay(61);
} }
public void removeDeadIngots() {
this.trackedIngots.removeIf((Item item) -> item.isDead());
}
@Override @Override
public void remove() { public void remove() {
super.remove(); super.remove();