mirror of
https://github.com/AlmostReliable/almostunified.git
synced 2024-11-14 11:15:23 -05:00
fix recipe type parsing not handling invalid cases
This commit is contained in:
parent
ebd1db2d37
commit
1f33027062
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ public class RecipeLink implements RecipeData {
|
|||
this.originalRecipe = originalRecipe;
|
||||
|
||||
try {
|
||||
this.type = ResourceLocation.tryParse(originalRecipe.get("type").getAsString());
|
||||
this.type = ResourceLocation.parse(originalRecipe.get("type").getAsString());
|
||||
} catch (Exception e) {
|
||||
throw new IllegalArgumentException("could not detect recipe type");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue