Skip to content
Permalink
Browse files

fix ic2 crash with apiculture #2139

  • Loading branch information
temp1011 committed May 28, 2018
1 parent a96ce6c commit 81585629749cd4ce99b811e380bc9b559dcb9e58
Showing with 7 additions and 5 deletions.
  1. +7 −5 src/main/java/forestry/plugins/PluginIC2.java
@@ -207,11 +207,13 @@ public void registerRecipes() {
RecipeUtil.addFermenterRecipes(bioChaff, ForestryAPI.activeMode.getIntegerSetting("fermenter.yield.wheat") * 9, Fluids.BIOMASS);
}

ItemRegistryApiculture beeItems = ModuleApiculture.getItems();
if (resin != null) {
RecipeManagers.centrifugeManager.addRecipe(20, beeItems.propolis.get(EnumPropolis.NORMAL, 1), ImmutableMap.of(resin, 1.0f));
} else {
Log.info("Missing IC2 resin, skipping centrifuge recipe for propolis to resin.");
if (ModuleHelper.isEnabled(ForestryModuleUids.APICULTURE)) {
ItemRegistryApiculture beeItems = ModuleApiculture.getItems();
if (resin != null) {
RecipeManagers.centrifugeManager.addRecipe(20, beeItems.propolis.get(EnumPropolis.NORMAL, 1), ImmutableMap.of(resin, 1.0f));
} else {
Log.info("Missing IC2 resin, skipping centrifuge recipe for propolis to resin.");
}
}

if (rubberSapling != null) {

0 comments on commit 8158562

Please sign in to comment.
You can’t perform that action at this time.