fixed skyseeker pickaxe not picking up items from far enough away

This commit is contained in:
Ell 2023-02-17 11:12:50 +01:00
parent 81ff2a4140
commit 08643e79b8

View file

@ -73,7 +73,7 @@ public class ItemPickaxe extends PickaxeItem implements IModItem, ICustomItemMod
return;
if (!isSelected || levelIn.isClientSide)
return;
var bounds = new AABB(entityIn.blockPosition()).inflate(3.5F);
var bounds = new AABB(entityIn.blockPosition()).inflate(4);
for (var item : levelIn.getEntitiesOfClass(ItemEntity.class, bounds)) {
// only pick up freshly dropped items
if (item.tickCount >= 5 || !item.isAlive())