From ace06bd9fd056e0d6a7ab5beac0b1a5c8bf73bf8 Mon Sep 17 00:00:00 2001 From: Nathan Wolf Date: Tue, 22 Mar 2016 14:19:59 -0700 Subject: [PATCH] CraftComplexPart should return getParent()'s status in isValid --- .../java/org/bukkit/craftbukkit/entity/CraftComplexPart.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftComplexPart.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftComplexPart.java index eb1ce79707..02fd230a34 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftComplexPart.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftComplexPart.java @@ -27,6 +27,11 @@ public class CraftComplexPart extends CraftEntity implements ComplexEntityPart { return getParent().getLastDamageCause(); } + @Override + public boolean isValid() { + return getParent().isValid(); + } + @Override public EntityComplexPart getHandle() { return (EntityComplexPart) entity;