mirror of
https://github.com/AlmostReliable/almostunified.git
synced 2024-11-14 11:15:23 -05:00
add logging for recipes with invalid recipe type
This commit is contained in:
parent
1f33027062
commit
54529f60b1
3 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue