mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-16 09:23:12 +01:00
fixed skyseeker pickaxe not picking up items from far enough away
This commit is contained in:
parent
81ff2a4140
commit
08643e79b8
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ public class ItemPickaxe extends PickaxeItem implements IModItem, ICustomItemMod
|
||||||
return;
|
return;
|
||||||
if (!isSelected || levelIn.isClientSide)
|
if (!isSelected || levelIn.isClientSide)
|
||||||
return;
|
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)) {
|
for (var item : levelIn.getEntitiesOfClass(ItemEntity.class, bounds)) {
|
||||||
// only pick up freshly dropped items
|
// only pick up freshly dropped items
|
||||||
if (item.tickCount >= 5 || !item.isAlive())
|
if (item.tickCount >= 5 || !item.isAlive())
|
||||||
|
|
Loading…
Reference in a new issue