diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-01-14 14:49:41 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-01-14 14:49:41 +0000 |
commit | 77a12d4dceb9401449bf4a851acf2ee44559ee1b (patch) | |
tree | a1d94c545eb909dadbe73afd494cece6defcf90c /src/main/java | |
parent | e6bb19f63ac5562b570928d1bcdb54df3f60aa61 (diff) | |
download | craftbukkit-77a12d4dceb9401449bf4a851acf2ee44559ee1b.tar craftbukkit-77a12d4dceb9401449bf4a851acf2ee44559ee1b.tar.gz craftbukkit-77a12d4dceb9401449bf4a851acf2ee44559ee1b.tar.lz craftbukkit-77a12d4dceb9401449bf4a851acf2ee44559ee1b.tar.xz craftbukkit-77a12d4dceb9401449bf4a851acf2ee44559ee1b.zip |
Correct casting for creature target typechecking
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftCreature.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftCreature.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftCreature.java index f0d45c47..aa8bdb3b 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftCreature.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftCreature.java @@ -24,7 +24,7 @@ public class CraftCreature extends CraftLivingEntity implements Creature { public CraftLivingEntity getTarget() { if (getHandle().target == null) return null; - if (!(getHandle().target instanceof CraftLivingEntity)) return null; + if (!(getHandle().target instanceof EntityLiving)) return null; return (CraftLivingEntity) getHandle().target.getBukkitEntity(); } |