diff --git a/src/main/java/org/maxgamer/quickshop/Shop/ArmorStandDisplayItem.java b/src/main/java/org/maxgamer/quickshop/Shop/ArmorStandDisplayItem.java index 856036222..8620a9f8a 100644 --- a/src/main/java/org/maxgamer/quickshop/Shop/ArmorStandDisplayItem.java +++ b/src/main/java/org/maxgamer/quickshop/Shop/ArmorStandDisplayItem.java @@ -147,8 +147,8 @@ public class ArmorStandDisplayItem implements DisplayItem { @Override public void remove() { - if (this.armorStand == null || !this.armorStand.isValid() || this.armorStand.isDead()) { - Util.debugLog("Ignore the armorStand removing because the armorStand is already gone."); + if (this.armorStand == null) { + Util.debugLog("Ignore the armorStand removing because the armorStand not spawned."); return; } this.armorStand.remove(); diff --git a/src/main/java/org/maxgamer/quickshop/Shop/RealDisplayItem.java b/src/main/java/org/maxgamer/quickshop/Shop/RealDisplayItem.java index 8cf25359f..4900f8110 100644 --- a/src/main/java/org/maxgamer/quickshop/Shop/RealDisplayItem.java +++ b/src/main/java/org/maxgamer/quickshop/Shop/RealDisplayItem.java @@ -92,7 +92,7 @@ public class RealDisplayItem implements DisplayItem { @Override public void remove() { - if (this.item == null || !this.item.isValid() || this.item.isDead()) { + if (this.item == null) { Util.debugLog("Ignore the Item removing because the Item is already gone."); return; }