Fix rose quartz duplication glitch (#1104)

This commit is contained in:
Snownee 2021-02-14 11:18:38 +08:00
parent 2d2c7e653f
commit 676a05ad07

View file

@ -77,6 +77,8 @@ public class SandPaperItem extends Item {
AxisAlignedBB bb = new AxisAlignedBB(hitVec, hitVec).grow(1f);
ItemEntity pickUp = null;
for (ItemEntity itemEntity : worldIn.getEntitiesWithinAABB(ItemEntity.class, bb)) {
if (!itemEntity.isAlive())
continue;
if (itemEntity.getPositionVec()
.distanceTo(playerIn.getPositionVec()) > 3)
continue;