This commit is contained in:
2025-07-28 22:08:39 +02:00
parent 86a10b3e97
commit 78e176b55e
@@ -145,6 +145,13 @@ public class PasteBuilder {
public PasteBuilder removeWater(boolean removeWater) {
if (!removeWater) return this;
BaseBlock water = Objects.requireNonNull(BlockTypes.get("water")).getDefaultState().toBaseBlock();
BlockType bubble_column_type = BlockTypes.get("bubble_column");
BaseBlock bubble_column;
if (bubble_column_type == null) {
bubble_column = null;
} else {
bubble_column = bubble_column_type.getDefaultState().toBaseBlock();
}
BaseBlock air = Objects.requireNonNull(BlockTypes.get("air")).getDefaultState().toBaseBlock();
WaterloggedRemover waterloggedRemover = new WaterloggedRemover(getClipboard());
@@ -154,6 +161,10 @@ public class PasteBuilder {
clipboard.setBlock(blockVector3, air);
return;
}
if (bubble_column != null && baseBlock.equals(bubble_column)) {
clipboard.setBlock(blockVector3, air);
return;
}
String blockName = clipboard.getFullBlock(blockVector3).getBlockType().getName();
if (blockName.equals("Water")) {
clipboard.setBlock(blockVector3, air);