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:
parent
58ba4e379d
commit
2fddd09aea
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue