Fix mismatched tile entities for new blocks. Fixes BUKKIT-3949

Dieser Commit ist enthalten in:
Travis Watkins 2013-03-31 19:38:25 -05:00
Ursprung 71a475f076
Commit 311f0c86a4

Datei anzeigen

@ -88,6 +88,10 @@ public class WorldServer extends World implements org.bukkit.BlockChangeDelegate
if (!(result instanceof TileEntityFurnace)) {
result = fixTileEntity(i, j, k, type, result);
}
} else if (type == Block.DROPPER.id) {
if (!(result instanceof TileEntityDropper)) {
result = fixTileEntity(i, j, k, type, result);
}
} else if (type == Block.DISPENSER.id) {
if (!(result instanceof TileEntityDispenser)) {
result = fixTileEntity(i, j, k, type, result);
@ -112,6 +116,18 @@ public class WorldServer extends World implements org.bukkit.BlockChangeDelegate
if (!(result instanceof TileEntityEnderChest)) {
result = fixTileEntity(i, j, k, type, result);
}
} else if (type == Block.BREWING_STAND.id) {
if (!(result instanceof TileEntityBrewingStand)) {
result = fixTileEntity(i, j, k, type, result);
}
} else if (type == Block.BEACON.id) {
if (!(result instanceof TileEntityBeacon)) {
result = fixTileEntity(i, j, k, type, result);
}
} else if (type == Block.HOPPER.id) {
if (!(result instanceof TileEntityHopper)) {
result = fixTileEntity(i, j, k, type, result);
}
}
return result;