Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
SPIGOT-2792: Return PIG for broken spawners
Dieser Commit ist enthalten in:
Ursprung
8095a750e7
Commit
88eede85cc
@ -24,7 +24,8 @@ public class CraftCreatureSpawner extends CraftBlockState implements CreatureSpa
|
|||||||
}
|
}
|
||||||
|
|
||||||
public EntityType getSpawnedType() {
|
public EntityType getSpawnedType() {
|
||||||
return EntityType.fromName(spawner.getSpawner().getMobName().a());
|
MinecraftKey key = spawner.getSpawner().getMobName();
|
||||||
|
return (key == null) ? EntityType.PIG : EntityType.fromName(key.a());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSpawnedType(EntityType entityType) {
|
public void setSpawnedType(EntityType entityType) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren