Fix #594 Crash in Natura plugin

(cherry picked from commit 689adab411)
This commit is contained in:
mezz committed 2015-04-05 21:14:56 -07:00
1 parent d451309170
commit 9d2d0af432
2 files changed
+6 -4

No files matched your search

@@ -253,9 +253,10 @@ public class PluginNatura extends ForestryPlugin {
if (itemBarley != null) {
RecipeUtil.injectLeveledRecipe(itemBarley, GameMode.getGameMode().getIntegerSetting("fermenter.yield.wheat"), Fluids.BIOMASS);
}
if (GameMode.getGameMode().getStackSetting("recipe.output.compost.wheat").stackSize > 0) {
Proxies.common.addRecipe(GameMode.getGameMode().getStackSetting("recipe.output.compost.wheat"), " X ", "X#X", " X ", '#', Blocks.dirt, 'X', itemBarley);
if (GameMode.getGameMode().getStackSetting("recipe.output.compost.wheat").stackSize > 0) {
ItemStack compostWheat = GameMode.getGameMode().getStackSetting("recipe.output.compost.wheat");
Proxies.common.addRecipe(compostWheat, " X ", "X#X", " X ", '#', Blocks.dirt, 'X', itemBarley);
}
}
}