diff --git a/src/main/java/magicbees/main/utils/CraftingManager.java b/src/main/java/magicbees/main/utils/CraftingManager.java index d4d42e07..90e11fe3 100644 --- a/src/main/java/magicbees/main/utils/CraftingManager.java +++ b/src/main/java/magicbees/main/utils/CraftingManager.java @@ -426,14 +426,16 @@ private static void setupVanillaCrafting() { 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( diff --git a/src/main/java/magicbees/main/utils/compat/ThaumcraftHelper.java b/src/main/java/magicbees/main/utils/compat/ThaumcraftHelper.java index 34253bcb..16de4e84 100644 --- a/src/main/java/magicbees/main/utils/compat/ThaumcraftHelper.java +++ b/src/main/java/magicbees/main/utils/compat/ThaumcraftHelper.java @@ -638,9 +638,11 @@ private static void setupItemAspects() { new ItemStack(item.getItem(), 1, ForestryHelper.BlockResource.APATITE.ordinal()), list.copy()); item = ItemInterface.getItemStack(ForestryHelper.Name, "apatite"); - ThaumcraftApi.registerObjectTag( - new ItemStack(item.getItem(), 1, item.getItemDamage()), - list.copy().add(Aspect.CRYSTAL, 2)); + if (item != null) { + ThaumcraftApi.registerObjectTag( + new ItemStack(item.getItem(), 1, item.getItemDamage()), + list.copy().add(Aspect.CRYSTAL, 2)); + } list = new AspectList().add(Aspect.MOTION, 2).add(Aspect.FLIGHT, 1); item = ItemInterface.getItemStack("beeDroneGE");