diff options
author | Celtic Minstrel <celtic.minstrel.ca@> | 2011-03-19 01:29:21 -0400 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2011-03-26 17:52:04 +0100 |
commit | cd50683f7899976527a9dc53a6b4f2b0daf2c6f9 (patch) | |
tree | cb884301d5f7fbbf5420b8ec81e826bed7a234e5 /src/main/java/org | |
parent | abf7f8581ee366c5951f230f4c44849ecfe7b472 (diff) | |
download | craftbukkit-cd50683f7899976527a9dc53a6b4f2b0daf2c6f9.tar craftbukkit-cd50683f7899976527a9dc53a6b4f2b0daf2c6f9.tar.gz craftbukkit-cd50683f7899976527a9dc53a6b4f2b0daf2c6f9.tar.lz craftbukkit-cd50683f7899976527a9dc53a6b4f2b0daf2c6f9.tar.xz craftbukkit-cd50683f7899976527a9dc53a6b4f2b0daf2c6f9.zip |
World.spawnCreature now returns LivingEntity instead of Creature, to allow Ghasts and Slimes to be spawned using the command.
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 78331aac..4ca351a3 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -342,10 +342,10 @@ public class CraftWorld implements World { return (Boat) boat.getBukkitEntity(); } - public Creature spawnCreature(Location loc, CreatureType creatureType) { - Creature creature; + public LivingEntity spawnCreature(Location loc, CreatureType creatureType) { + LivingEntity creature; try { - EntityCreature entityCreature = (EntityCreature) EntityTypes.a(creatureType.getName(), world); + EntityLiving entityCreature = (EntityLiving) EntityTypes.a(creatureType.getName(), world); entityCreature.a(loc.getX(), loc.getY(), loc.getZ()); creature = (Creature) CraftEntity.getEntity(server, entityCreature); world.a(entityCreature); |