mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-29 03:13:52 -07:00
revert change to make mobspawners drop a spawner of that type
removed some debug code fixed a 1.5 compatibility issue
This commit is contained in:
@@ -28,11 +28,10 @@ public class TileEntityMobSpawner extends TileEntity {
|
||||
|
||||
public void setId(int id) {
|
||||
mobName = EntityTypes.getNameFromClass(EntityTypes.getClassFromId(id));
|
||||
if(mobName == null || mobName.isEmpty()) mobName = "Pig";
|
||||
try {
|
||||
EntityTypes.a(mobName, world);
|
||||
if (mobName == null || mobName.length() == 0) {
|
||||
mobName = "Pig";
|
||||
}
|
||||
catch (Throwable t) { // If we get any error at all, fallback to a Pig
|
||||
if (EntityTypes.a(mobName, world) == null) {
|
||||
mobName = "Pig";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user