Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-21 05:50:05 +01:00
Fixed NPE when people experience the chest crash
Dieser Commit ist enthalten in:
Ursprung
914a8a0c04
Commit
5b68bae02e
@ -159,7 +159,11 @@ public class TileEntityChest extends TileEntity implements IInventory {
|
||||
if (entity instanceof TileEntityChest) {
|
||||
return (TileEntityChest)entity;
|
||||
} else {
|
||||
world.getServer().getLogger().severe("Block at " + x + "," + y + "," + z + " is a chest but has a " + entity.getClass().getName());
|
||||
String name = "null";
|
||||
if (entity != null) {
|
||||
name = entity.toString();
|
||||
}
|
||||
world.getServer().getLogger().severe("Block at " + x + "," + y + "," + z + " is a chest but has a " + name);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren