forked from SteamWar/SteamWar
Closes: #94
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user