Fix rose quartz duplication glitch (#1104)
This commit is contained in:
parent
2d2c7e653f
commit
676a05ad07
1 changed files with 2 additions and 0 deletions
|
@ -77,6 +77,8 @@ public class SandPaperItem extends Item {
|
||||||
AxisAlignedBB bb = new AxisAlignedBB(hitVec, hitVec).grow(1f);
|
AxisAlignedBB bb = new AxisAlignedBB(hitVec, hitVec).grow(1f);
|
||||||
ItemEntity pickUp = null;
|
ItemEntity pickUp = null;
|
||||||
for (ItemEntity itemEntity : worldIn.getEntitiesWithinAABB(ItemEntity.class, bb)) {
|
for (ItemEntity itemEntity : worldIn.getEntitiesWithinAABB(ItemEntity.class, bb)) {
|
||||||
|
if (!itemEntity.isAlive())
|
||||||
|
continue;
|
||||||
if (itemEntity.getPositionVec()
|
if (itemEntity.getPositionVec()
|
||||||
.distanceTo(playerIn.getPositionVec()) > 3)
|
.distanceTo(playerIn.getPositionVec()) > 3)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue