1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-17 10:41:41 +01:00

world.spawnCreature cast fix

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
CraftBukkit/Spigot 2011-03-30 00:40:46 +02:00
parent 58ba4e379d
commit 2fddd09aea

View file

@ -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.