Skip to content

Commit

Permalink
1.20.5 recipes: null over -1
Browse files Browse the repository at this point in the history
  • Loading branch information
extremeheat committed Aug 29, 2024
1 parent 71070c3 commit c50a141
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ public JsonElement generateDataJson() {
List<Integer> ingr = new ArrayList<>();
for (int i = 0; i < 9; i++) {
if (i >= ingredients.size()) {
ingr.add(-1);
ingr.add(null);
continue;
}
var stacks = ingredients.get(i);
var matching = stacks.getMatchingStacks();
if (matching.length == 0) {
ingr.add(-1);
ingr.add(null);
} else {
ingr.add(getRawIdFor(matching[0].getItem()));
}
Expand Down

0 comments on commit c50a141

Please sign in to comment.