mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 20:42:35 +00:00
Fix #594 Crash in Natura plugin
This commit is contained in:
1 parent
1526b2cb3f
commit
689adab411
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user