summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftWorld.java6
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);