Fixed skyseeker's pickaxe dupliction glich

Closes #128
This commit is contained in:
Ellpeck 2020-07-12 18:56:46 +02:00
parent 67af09918f
commit 8755a1a660

View file

@ -78,7 +78,7 @@ public class ItemPickaxe extends PickaxeItem implements IModItem, ICustomItemMod
AxisAlignedBB bounds = new AxisAlignedBB(entityIn.getPosition()).grow(3.5F);
for (ItemEntity item : worldIn.getEntitiesWithinAABB(ItemEntity.class, bounds)) {
// only pick up freshly dropped items
if (item.ticksExisted >= 5)
if (item.ticksExisted >= 5 || !item.isAlive())
continue;
item.setPickupDelay(0);
item.onCollideWithPlayer((PlayerEntity) entityIn);