From 8755a1a660c3fad9a4df0d081de2fe9542c6cccb Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 12 Jul 2020 18:56:46 +0200 Subject: [PATCH] Fixed skyseeker's pickaxe dupliction glich Closes #128 --- .../java/de/ellpeck/naturesaura/items/tools/ItemPickaxe.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/naturesaura/items/tools/ItemPickaxe.java b/src/main/java/de/ellpeck/naturesaura/items/tools/ItemPickaxe.java index ab7422e3..1fb8f702 100644 --- a/src/main/java/de/ellpeck/naturesaura/items/tools/ItemPickaxe.java +++ b/src/main/java/de/ellpeck/naturesaura/items/tools/ItemPickaxe.java @@ -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);