From 2cf175b3280dc64110603a213a842b00b9585a4a Mon Sep 17 00:00:00 2001 From: Yeregorix Date: Mon, 5 Sep 2022 20:31:37 +0200 Subject: [PATCH] Fix pattern matching of block states --- .../java/net/smoofyuniverse/superpiston/util/RegistryUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/smoofyuniverse/superpiston/util/RegistryUtil.java b/src/main/java/net/smoofyuniverse/superpiston/util/RegistryUtil.java index 896b781..a93458a 100644 --- a/src/main/java/net/smoofyuniverse/superpiston/util/RegistryUtil.java +++ b/src/main/java/net/smoofyuniverse/superpiston/util/RegistryUtil.java @@ -65,7 +65,7 @@ public static Map resolveBlockStates(Map map) { Stream matchedStates = blockTypeRegistry.stream() .flatMap(type -> type.validStates().stream()) - .filter(state -> pattern.matcher(state.toString()).matches()); + .filter(state -> pattern.matcher(state.asString()).matches()); if (negate) matchedStates.forEach(states::remove);