Skip to content

Commit

Permalink
Fix pattern matching of block states
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeregorix committed Sep 5, 2022
1 parent 942154b commit 2cf175b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static <V> Map<BlockState, V> resolveBlockStates(Map<String, V> map) {

Stream<BlockState> 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);
Expand Down

0 comments on commit 2cf175b

Please sign in to comment.