mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-18 06:57:49 +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)) {
|
if (!(result instanceof TileEntityFurnace)) {
|
||||||
result = fixTileEntity(i, j, k, type, result);
|
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) {
|
} else if (type == Block.DISPENSER.id) {
|
||||||
if (!(result instanceof TileEntityDispenser)) {
|
if (!(result instanceof TileEntityDispenser)) {
|
||||||
result = fixTileEntity(i, j, k, type, result);
|
result = fixTileEntity(i, j, k, type, result);
|
||||||
@ -112,6 +116,18 @@ public class WorldServer extends World implements org.bukkit.BlockChangeDelegate
|
|||||||
if (!(result instanceof TileEntityEnderChest)) {
|
if (!(result instanceof TileEntityEnderChest)) {
|
||||||
result = fixTileEntity(i, j, k, type, result);
|
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;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user