geforkt von Mirrors/Paper
world.spawnCreature cast fix
Dieser Commit ist enthalten in:
Ursprung
c69eac3f3a
Commit
e9cc4bbb05
@ -347,7 +347,7 @@ public class CraftWorld implements World {
|
|||||||
try {
|
try {
|
||||||
EntityLiving entityCreature = (EntityLiving) EntityTypes.a(creatureType.getName(), world);
|
EntityLiving entityCreature = (EntityLiving) EntityTypes.a(creatureType.getName(), world);
|
||||||
entityCreature.a(loc.getX(), loc.getY(), loc.getZ());
|
entityCreature.a(loc.getX(), loc.getY(), loc.getZ());
|
||||||
creature = (Creature) CraftEntity.getEntity(server, entityCreature);
|
creature = (LivingEntity) CraftEntity.getEntity(server, entityCreature);
|
||||||
world.a(entityCreature);
|
world.a(entityCreature);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// if we fail, for any reason, return null.
|
// if we fail, for any reason, return null.
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren