diff options
author | Erik Broes <erikbroes@grum.nl> | 2011-03-30 00:40:46 +0200 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2011-03-30 00:41:07 +0200 |
commit | e9cc4bbb0513fe34515893650bffd6bb7fd91e8b (patch) | |
tree | 2f7c82d4c24b2252bcc6c2db317421704ef4391b /src/main/java/org | |
parent | c69eac3f3ae4da56bdffa3e3fbfc819746f05abe (diff) | |
download | craftbukkit-e9cc4bbb0513fe34515893650bffd6bb7fd91e8b.tar craftbukkit-e9cc4bbb0513fe34515893650bffd6bb7fd91e8b.tar.gz craftbukkit-e9cc4bbb0513fe34515893650bffd6bb7fd91e8b.tar.lz craftbukkit-e9cc4bbb0513fe34515893650bffd6bb7fd91e8b.tar.xz craftbukkit-e9cc4bbb0513fe34515893650bffd6bb7fd91e8b.zip |
world.spawnCreature cast fix
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 4ca351a3..3e009c67 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -347,7 +347,7 @@ public class CraftWorld implements World { try { EntityLiving entityCreature = (EntityLiving) EntityTypes.a(creatureType.getName(), world); entityCreature.a(loc.getX(), loc.getY(), loc.getZ()); - creature = (Creature) CraftEntity.getEntity(server, entityCreature); + creature = (LivingEntity) CraftEntity.getEntity(server, entityCreature); world.a(entityCreature); } catch (Exception e) { // if we fail, for any reason, return null. |