mirror of
https://github.com/array-in-a-matrix/brainwine.git
synced 2025-04-02 11:11:58 -04:00
Clear liquid block if a whole block is placed over it
This commit is contained in:
parent
2269b4eb5f
commit
355e28cdb5
1 changed files with 4 additions and 0 deletions
|
@ -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))) {
|
||||
|
|
Loading…
Add table
Reference in a new issue