Skip to content

Commit

Permalink
Fix BlockStatePredicate#of for lists with 1 element
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxNeedsSnacks committed Jun 8, 2024
1 parent e293687 commit 2f0268d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static BlockStatePredicate of(Object o) {
return new AndMatch(predicates);
}

return ofSingle(o);
return ofSingle(list.get(0));
}

static RuleTest ruleTestOf(Object o) {
Expand Down

0 comments on commit 2f0268d

Please sign in to comment.