summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorNathan Adams <dinnerbone@dinnerbone.com>2012-01-14 14:49:41 +0000
committerNathan Adams <dinnerbone@dinnerbone.com>2012-01-14 14:49:41 +0000
commit77a12d4dceb9401449bf4a851acf2ee44559ee1b (patch)
treea1d94c545eb909dadbe73afd494cece6defcf90c /src/main/java
parente6bb19f63ac5562b570928d1bcdb54df3f60aa61 (diff)
downloadcraftbukkit-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.java2
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();
}