Implement ability to use -w flag on //drain

fixes #464
This commit is contained in:
dordsor21
2020-07-03 13:49:17 +01:00
parent 63bc151f6c
commit ea7897934f
2 changed files with 9 additions and 8 deletions

View File

@ -45,7 +45,7 @@ public class WaterloggedRemover extends AbstractExtentPattern {
// init
for (int i = 0; i < remap.length; i++) {
BlockState state = remap[i];
BlockState state = BlockTypesCache.states[i];
BlockType type = state.getBlockType();
if (!type.hasProperty(PropertyKey.WATERLOGGED)) {
continue;