second null check

This commit is contained in:
chochem committed 2024-09-11 18:07:25 +01:00
1 parent cdf3046e61
commit 3ff6e91053
1 file changed
+10 -8
@@ -426,14 +426,16 @@ public class CraftingManager {
GameRegistry.addRecipe(
new ShapedOreRecipe(new ItemStack(Items.emerald), "xxx", "xxx", "xxx", 'x', "nuggetEmerald"));
GameRegistry.addRecipe(
new ShapedOreRecipe(
ItemInterface.getItemStack("apatite"),
"xxx",
"xxx",
"xxx",
'x',
Config.nuggets.getStackForType(NuggetType.APATITE)));
if (ItemInterface.getItemStack("apatite") != null) {
GameRegistry.addRecipe(
new ShapedOreRecipe(
ItemInterface.getItemStack("apatite"),
"xxx",
"xxx",
"xxx",
'x',
Config.nuggets.getStackForType(NuggetType.APATITE)));
}
output = Config.miscResources.getStackForType(ResourceType.DIMENSIONAL_SINGULARITY);
GameRegistry.addRecipe(