diff options
author | Nathan Wolf <nathan@elmakers.com> | 2016-03-22 14:19:59 -0700 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-03-23 22:06:50 +1100 |
commit | ace06bd9fd056e0d6a7ab5beac0b1a5c8bf73bf8 (patch) | |
tree | 3c559e5597f85530c17c82b08e7f3f092892eba2 | |
parent | 9a072ddc1f181a1eef3b1a5d306af21756f8211b (diff) | |
download | craftbukkit-ace06bd9fd056e0d6a7ab5beac0b1a5c8bf73bf8.tar craftbukkit-ace06bd9fd056e0d6a7ab5beac0b1a5c8bf73bf8.tar.gz craftbukkit-ace06bd9fd056e0d6a7ab5beac0b1a5c8bf73bf8.tar.lz craftbukkit-ace06bd9fd056e0d6a7ab5beac0b1a5c8bf73bf8.tar.xz craftbukkit-ace06bd9fd056e0d6a7ab5beac0b1a5c8bf73bf8.zip |
CraftComplexPart should return getParent()'s status in isValid
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftComplexPart.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftComplexPart.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftComplexPart.java index eb1ce797..02fd230a 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftComplexPart.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftComplexPart.java @@ -28,6 +28,11 @@ public class CraftComplexPart extends CraftEntity implements ComplexEntityPart { } @Override + public boolean isValid() { + return getParent().isValid(); + } + + @Override public EntityComplexPart getHandle() { return (EntityComplexPart) entity; } |