From d74237b15e0c00ab634bce36a1d5fa41f08d417c Mon Sep 17 00:00:00 2001 From: sk89q Date: Sun, 6 Jul 2014 18:12:15 -0700 Subject: [PATCH] Fixes masks parsed from input not using block wildcards. Closes WORLDEDIT-3147. --- .../sk89q/worldedit/extension/registry/DefaultMaskParser.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/sk89q/worldedit/extension/registry/DefaultMaskParser.java b/src/main/java/com/sk89q/worldedit/extension/registry/DefaultMaskParser.java index d8521fb9c..304a49b60 100644 --- a/src/main/java/com/sk89q/worldedit/extension/registry/DefaultMaskParser.java +++ b/src/main/java/com/sk89q/worldedit/extension/registry/DefaultMaskParser.java @@ -134,6 +134,7 @@ class DefaultMaskParser extends InputParser { default: ParserContext tempContext = new ParserContext(context); tempContext.setRestricted(false); + tempContext.setPreferringWildcard(true); return new BlockMask(extent, worldEdit.getBlockRegistry().parseFromListInput(component, tempContext)); } }