Skip to content

Commit

Permalink
add logging for recipes with invalid recipe type
Browse files Browse the repository at this point in the history
  • Loading branch information
rlnt committed Oct 22, 2024
1 parent 1f33027 commit 54529f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ All notable changes to this project will be documented in this file.

## Unreleased

- added better logging for cases where items are assigned to multiple unification tags
- added logging for cases where items are assigned to multiple unification tags
- added logging for cases where the recipe type can't be found
- added Turkish translation ([#102](https://github.com/AlmostReliable/almostunified/pull/102))
- fixed crash when runtime isn't loaded ([#101](https://github.com/AlmostReliable/almostunified/issues/101))
- fixed newly created custom tags not being considered for unification
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public ResourceLocation getType() {
try {
return ResourceLocation.parse(json.get("type").getAsString());
} catch (Exception e) {
throw new IllegalArgumentException("could not detect recipe type");
throw new IllegalArgumentException("could not detect recipe type for recipe " + id);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public RecipeLink(ResourceLocation id, JsonObject originalRecipe) {
try {
this.type = ResourceLocation.parse(originalRecipe.get("type").getAsString());
} catch (Exception e) {
throw new IllegalArgumentException("could not detect recipe type");
throw new IllegalArgumentException("could not detect recipe type for recipe " + id);
}
}

Expand Down

0 comments on commit 54529f6

Please sign in to comment.