mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 00:15:05 +00:00
another try at fixing CME in metalclips
This commit is contained in:
parent
a1866b7c1c
commit
c06c3637fe
1 changed files with 1 additions and 7 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue