Skip to content

Commit

Permalink
Safety check for IC2 Plugin. #351
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Dec 4, 2014
1 parent d132a0a commit 38009bb
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/main/java/forestry/plugins/PluginIC2.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,6 @@ public void preInit() {
ChipsetManager.circuitRegistry.registerLegacyMapping(CircuitId.ELECTRIC_EFFICIENCY_I, "forestry.energyEfficiency1");
ChipsetManager.circuitRegistry.registerLegacyMapping(CircuitId.ELECTRIC_BOOST_I, "forestry.energyBoost1");
ChipsetManager.circuitRegistry.registerLegacyMapping(CircuitId.ELECTRIC_BOOST_II, "forestry.energyBoost2");

// Remove some items from the recycler
if (PluginManager.Module.APICULTURE.isEnabled()) {
Recipes.recyclerBlacklist.add(new RecipeInputItemStack(ForestryItem.beeQueenGE.getItemStack()));
Recipes.recyclerBlacklist.add(new RecipeInputItemStack(ForestryItem.beePrincessGE.getItemStack()));
}
}

@Override
Expand All @@ -188,6 +182,16 @@ public void doInit() {

config = Config.config;

// Remove some items from the recycler
if (Recipes.recyclerBlacklist != null) {
if (PluginManager.Module.APICULTURE.isEnabled()) {
Recipes.recyclerBlacklist.add(new RecipeInputItemStack(ForestryItem.beeQueenGE.getItemStack()));
Recipes.recyclerBlacklist.add(new RecipeInputItemStack(ForestryItem.beePrincessGE.getItemStack()));
}
} else {
Proxies.log.severe("IC2 Recipes.recyclerBlacklist not found.");
}

definitionEngineTin.register();
definitionGenerator.register();

Expand Down

0 comments on commit 38009bb

Please sign in to comment.