From 5bc0625ebad33dc94a65090e3dd1b12510899f5a Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Thu, 12 Dec 2019 15:28:23 +0800 Subject: [PATCH] Force remove the entites, fuck away check. Former-commit-id: 906f35aa1dd14ce0d62aa1e75733ea341073ba77 Former-commit-id: 220b4793aeafb1d033365ea8e2e2786b852e3aae --- .../org/maxgamer/quickshop/Shop/ArmorStandDisplayItem.java | 4 ++-- .../java/org/maxgamer/quickshop/Shop/RealDisplayItem.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; }