From e359c3b21a2b6d182f84a37ded982e4967f46dc7 Mon Sep 17 00:00:00 2001 From: Eric Date: Sat, 3 Nov 2018 20:31:01 +0100 Subject: [PATCH] Kill armor stands when removing --- src/main/java/de/epiceric/shopchest/nms/ArmorStandWrapper.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/de/epiceric/shopchest/nms/ArmorStandWrapper.java b/src/main/java/de/epiceric/shopchest/nms/ArmorStandWrapper.java index 385646d..02c67c4 100644 --- a/src/main/java/de/epiceric/shopchest/nms/ArmorStandWrapper.java +++ b/src/main/java/de/epiceric/shopchest/nms/ArmorStandWrapper.java @@ -173,6 +173,8 @@ public class ArmorStandWrapper { Method addEntityMethod = worldServerClass.getDeclaredMethod(Utils.getMajorVersion() == 8 ? "b" : "c", entityClass); addEntityMethod.setAccessible(true); addEntityMethod.invoke(worldServerClass.cast(nmsWorld), entity); + + entityClass.getMethod("die").invoke(entity); } catch (ReflectiveOperationException e) { plugin.getLogger().severe("Could not remove hologram"); plugin.debug("Could not remove armor stand from entity lists");