From 1f33027062a92d122f774cda10197f1904189ae7 Mon Sep 17 00:00:00 2001 From: rlnt Date: Tue, 22 Oct 2024 14:33:03 +0200 Subject: [PATCH] fix recipe type parsing not handling invalid cases --- .../almostreliable/unified/unification/recipe/RecipeLink.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/src/main/java/com/almostreliable/unified/unification/recipe/RecipeLink.java b/Common/src/main/java/com/almostreliable/unified/unification/recipe/RecipeLink.java index b22c144..42fa990 100644 --- a/Common/src/main/java/com/almostreliable/unified/unification/recipe/RecipeLink.java +++ b/Common/src/main/java/com/almostreliable/unified/unification/recipe/RecipeLink.java @@ -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"); }