From 7585c6a265685d0044d07f1a21ae20c620afbe8f Mon Sep 17 00:00:00 2001 From: Nirek-K Date: Thu, 11 Feb 2016 00:48:38 -0600 Subject: [PATCH] Fix #1067 add module checks to BoP Plugin --- .../plugins/compat/PluginBiomesOPlenty.java | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/main/java/forestry/plugins/compat/PluginBiomesOPlenty.java b/src/main/java/forestry/plugins/compat/PluginBiomesOPlenty.java index eaee10493..1f7f00721 100644 --- a/src/main/java/forestry/plugins/compat/PluginBiomesOPlenty.java +++ b/src/main/java/forestry/plugins/compat/PluginBiomesOPlenty.java @@ -72,16 +72,22 @@ public class PluginBiomesOPlenty extends ForestryPlugin { persimmon = new ItemStack(food, 1, 8); } - addFlowers(); - addFarmCrops(); + if (PluginManager.Module.APICULTURE.isEnabled()) { + addFlowers(); + } + if (PluginManager.Module.FARMING.isEnabled()) { + addFarmCrops(); + } } @Override protected void registerRecipes() { super.registerRecipes(); - addFermenterRecipes(); - addSqueezerRecipes(); + if (PluginManager.Module.FACTORY.isEnabled()) { + addFermenterRecipes(); + addSqueezerRecipes(); + } } private static void addFarmCrops() { @@ -100,12 +106,12 @@ public class PluginBiomesOPlenty extends ForestryPlugin { FMLInterModComms.sendMessage(Constants.MOD, "add-farmable-sapling", String.format("farmArboreal@%s.-1", saplingName)); } - if (PluginManager.Module.FARMING.isEnabled() && saplings != null && persimmon != null) { + if (saplings != null && persimmon != null) { Farmables.farmables.get("farmArboreal").add(new FarmableGenericSapling(saplings, 15, persimmon)); } Block boPTurnip = GameRegistry.findBlock(BoP, "turnip"); - if (PluginManager.Module.FARMING.isEnabled() && boPTurnip != null) { + if (boPTurnip != null) { Item boPTurnipSeeds = GameRegistry.findItem(BoP, "turnipSeeds"); if (boPTurnipSeeds != null) { Farmables.farmables.get("farmVegetables").add(new FarmableGenericCrop(new ItemStack(boPTurnipSeeds, 1, 0), boPTurnip, 7));