No, bad RuntimeException!!

Of course I oversaw the second one... No PR this time since I just cp'd the exception class
This commit is contained in:
Ayutac 2022-03-31 20:01:55 +02:00 committed by GitHub
parent e829e371d1
commit 61188e755d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@ public class RecipeManager {
public static RebornRecipeType<?> getRecipeType(Identifier name) {
if (!recipeTypes.containsKey(name)) {
throw new RuntimeException("RebornRecipe type " + name + " not found");
throw new IllegalStateException("RebornRecipe type " + name + " not found");
}
return recipeTypes.get(name);
}