From 11902a86ff5398a46570ca123abee0b514076e75 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sat, 19 Mar 2011 01:29:21 -0400 Subject: [PATCH] World.spawnCreature now returns LivingEntity instead of Creature, to allow Ghasts and Slimes to be spawned using the command. By: Celtic Minstrel --- .../src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 78331aac1c..4ca351a371 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/paper-server/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);