Skip to content

Commit

Permalink
Fixed crash with recipe schemas and probe
Browse files Browse the repository at this point in the history
  • Loading branch information
LatvianModder committed Oct 17, 2024
1 parent eb9b153 commit c2b49a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public RecipeKey<T> alwaysWrite() {
}

public String getPreferredBuilderKey() {
return functionNames == null ? name : functionNames.getFirst();
return functionNames == null || functionNames.isEmpty() ? name : functionNames.getFirst();
}

public JsonObject toJson(RecipeSchemaType type, DynamicOps<JsonElement> ops) {
Expand Down

0 comments on commit c2b49a4

Please sign in to comment.