Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-29 17:40:09 +01:00
World.spawnCreature now returns LivingEntity instead of Creature, to allow Ghasts and Slimes to be spawned using the command.
Dieser Commit ist enthalten in:
Ursprung
abf7f8581e
Commit
cd50683f78
@ -342,10 +342,10 @@ public class CraftWorld implements World {
|
|||||||
return (Boat) boat.getBukkitEntity();
|
return (Boat) boat.getBukkitEntity();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Creature spawnCreature(Location loc, CreatureType creatureType) {
|
public LivingEntity spawnCreature(Location loc, CreatureType creatureType) {
|
||||||
Creature creature;
|
LivingEntity creature;
|
||||||
try {
|
try {
|
||||||
EntityCreature entityCreature = (EntityCreature) 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 = (Creature) CraftEntity.getEntity(server, entityCreature);
|
||||||
world.a(entityCreature);
|
world.a(entityCreature);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren