add logging for recipes with invalid recipe type

This commit is contained in:
rlnt 2024-10-22 14:38:15 +02:00
parent 1f33027062
commit 54529f60b1
No known key found for this signature in database
3 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -28,7 +28,7 @@ public class RecipeJsonImpl implements RecipeJson {
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);
}
}

View file

@ -29,7 +29,7 @@ public class RecipeLink implements RecipeData {
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);
}
}