Clear liquid block if a whole block is placed over it

This commit is contained in:
kuroppoi 2022-04-16 21:32:56 +02:00
parent 2269b4eb5f
commit 355e28cdb5

View file

@ -484,6 +484,10 @@ public class Zone {
sendMessageToChunk(new BlockChangeMessage(x, y, layer, item, mod), chunk);
if(layer == Layer.FRONT) {
if(item.isWhole()) {
updateBlock(x, y, Layer.LIQUID, Item.AIR, 0);
}
if(metadata != null && item.hasMeta()) {
setMetaBlock(x, y, item, owner, metadata);
} else if(!item.hasMeta() && metaBlocks.containsKey(getBlockIndex(x, y))) {