mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 03:43:30 +01:00
parent
67af09918f
commit
8755a1a660
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue