From 724661d9032228df29e2fc57b5b53ae83606d2aa Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Mon, 9 Jul 2018 17:17:10 +1000 Subject: [PATCH] Fixed DefaultBlockParser not working for things with _ --- .../sk89q/worldedit/extension/factory/DefaultBlockParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/DefaultBlockParser.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/DefaultBlockParser.java index cd73b31f3..a1b18a251 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/DefaultBlockParser.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/DefaultBlockParser.java @@ -99,7 +99,7 @@ class DefaultBlockParser extends InputParser { } } - private static Pattern blockStatePattern = Pattern.compile("([a-z:]+)(?:\\[([a-zA-Z0-9=, ]+)])?", Pattern.CASE_INSENSITIVE); + private static Pattern blockStatePattern = Pattern.compile("([a-z:_]+)(?:\\[([a-zA-Z0-9=, _]+)])?", Pattern.CASE_INSENSITIVE); private static String[] EMPTY_STRING_ARRAY = new String[]{}; /**