From 676a05ad07c7179b15a1b991ccde23275bcc46b5 Mon Sep 17 00:00:00 2001 From: Snownee Date: Sun, 14 Feb 2021 11:18:38 +0800 Subject: [PATCH] Fix rose quartz duplication glitch (#1104) --- .../create/content/curiosities/tools/SandPaperItem.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/simibubi/create/content/curiosities/tools/SandPaperItem.java b/src/main/java/com/simibubi/create/content/curiosities/tools/SandPaperItem.java index 1915a3e3b..2411eb091 100644 --- a/src/main/java/com/simibubi/create/content/curiosities/tools/SandPaperItem.java +++ b/src/main/java/com/simibubi/create/content/curiosities/tools/SandPaperItem.java @@ -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;