Skip to content

Commit

Permalink
fix: Fix upper limit for printer and blender recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Dec 30, 2023
1 parent 99bbebd commit 88218ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public BlenderRecipe fromJson(ResourceLocation id, JsonObject jsonObject) {
final var ingredients = itemsFromJson(GsonHelper.getAsJsonArray(jsonObject, "ingredients"));
if (ingredients.isEmpty()) {
throw new JsonParseException("No ingredients for blender recipe");
} else if (ingredients.size() > 4) {
} else if (ingredients.size() > 8) {
throw new JsonParseException("Too many ingredients for blender recipe");
} else {
final var resultItem = ShapedRecipe.itemStackFromJson(GsonHelper.getAsJsonObject(jsonObject, "result"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public PrinterRecipe fromJson(ResourceLocation id, JsonObject jsonObject) {
final var ingredients = itemsFromJson(GsonHelper.getAsJsonArray(jsonObject, "ingredients"));
if (ingredients.isEmpty()) {
throw new JsonParseException("No ingredients for printer recipe");
} else if (ingredients.size() > 4) {
} else if (ingredients.size() > 8) {
throw new JsonParseException("Too many ingredients for printer recipe");
} else {
final var resultItem = ShapedRecipe.itemStackFromJson(GsonHelper.getAsJsonObject(jsonObject, "result"));
Expand Down

0 comments on commit 88218ea

Please sign in to comment.