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);