mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-17 22:47:34 +01:00
Fix mismatched tile entities for new blocks. Fixes BUKKIT-3949
This commit is contained in:
parent
71a475f076
commit
311f0c86a4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user