Fixed //replace and masks with states.

This commit is contained in:
Matthew Miller
2018-07-21 20:35:23 +10:00
parent 663dd1f4d8
commit 2239d14a01
3 changed files with 29 additions and 4 deletions

View File

@ -95,7 +95,13 @@ public class BlockMask extends AbstractExtentMask {
@Override
public boolean test(Vector vector) {
BlockStateHolder block = getExtent().getBlock(vector);
return blocks.contains(block) || blocks.contains(block);
for (BlockStateHolder testBlock : blocks) {
if (testBlock.equalsFuzzy(block)) {
return true;
}
}
return false;
}
@Nullable