diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftCreature.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftCreature.java index f0d45c4704..aa8bdb3b09 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(); }