From 2fddd09aea1679bd2a8bbb37ba2a126768ae20c7 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 30 Mar 2011 00:40:46 +0200 Subject: [PATCH] world.spawnCreature cast fix By: Erik Broes --- .../src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 4ca351a371..3e009c67b8 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/paper-server/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.