Fixed a serverside crash with the skyseekers pickaxe

Closes #123
This commit is contained in:
Ellpeck 2020-05-28 15:10:26 +02:00
parent 10a3f0fbd8
commit f78e5420c4

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.getAge() >= 5)
if (item.ticksExisted >= 5)
continue;
item.setPickupDelay(0);
item.onCollideWithPlayer((PlayerEntity) entityIn);