3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-19 21:10:10 +01:00

world.spawnCreature cast fix

Dieser Commit ist enthalten in:
Erik Broes 2011-03-30 00:40:46 +02:00
Ursprung c69eac3f3a
Commit e9cc4bbb05

Datei anzeigen

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