mirror of
https://github.com/PaperMC/Paper.git
synced 2024-09-12 15:08:27 +02:00
world.spawnCreature cast fix
This commit is contained in:
parent
c69eac3f3a
commit
e9cc4bbb05
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user