diff --git a/src/main/java/com/klikli_dev/theurgy/item/AlchemicalSulfurItem.java b/src/main/java/com/klikli_dev/theurgy/item/AlchemicalSulfurItem.java index a7be904ac..d13f3138c 100644 --- a/src/main/java/com/klikli_dev/theurgy/item/AlchemicalSulfurItem.java +++ b/src/main/java/com/klikli_dev/theurgy/item/AlchemicalSulfurItem.java @@ -91,7 +91,7 @@ public static void registerCreativeModeTabs(AlchemicalSulfurItem item, CreativeM if (level != null) { var recipeManager = level.getRecipeManager(); recipeManager.getRecipes().forEach((recipe) -> { - if (recipe.getResultItem().getItem() == item) { + if (recipe.getResultItem() != null && recipe.getResultItem().getItem() == item) { output.accept(recipe.getResultItem().copy()); } }); diff --git a/src/main/java/com/klikli_dev/theurgy/item/DivinationRodItem.java b/src/main/java/com/klikli_dev/theurgy/item/DivinationRodItem.java index d82b5eacf..3136fbd13 100644 --- a/src/main/java/com/klikli_dev/theurgy/item/DivinationRodItem.java +++ b/src/main/java/com/klikli_dev/theurgy/item/DivinationRodItem.java @@ -446,7 +446,7 @@ public static void registerCreativeModeTabs(DivinationRodItem item, CreativeMode if (level != null) { var recipeManager = level.getRecipeManager(); recipeManager.getRecipes().forEach((recipe) -> { - if (recipe.getResultItem().getItem() == item) { + if (recipe.getResultItem() != null && recipe.getResultItem().getItem() == item) { output.accept(recipe.getResultItem().copy()); } });