From 72c8c6252abb0e3d84017a796b129876eec41d6d Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Wed, 16 May 2018 17:27:44 +0100 Subject: [PATCH] Add a config to disable sawmill recipes --- .../techreborn/init/recipes/IndustrialSawmillRecipes.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/techreborn/init/recipes/IndustrialSawmillRecipes.java b/src/main/java/techreborn/init/recipes/IndustrialSawmillRecipes.java index 24c6e2ffb..4de160bae 100644 --- a/src/main/java/techreborn/init/recipes/IndustrialSawmillRecipes.java +++ b/src/main/java/techreborn/init/recipes/IndustrialSawmillRecipes.java @@ -53,7 +53,13 @@ public class IndustrialSawmillRecipes extends RecipeMethods { @ConfigRegistry(config = "recipes", category = "sawmill", key = "plankCount", comment = "Number of planks the saw mill will ouput") public static int plankCount = 4; + @ConfigRegistry(config = "recipes", category = "sawmill", key = "disableRecipes", comment = "Set to true to disable sawmill recipes from loading.") + public static boolean disableRecipes = false; + public static void init() { + if(disableRecipes){ + return; + } InventoryCrafting inventoryCrafting = new InventoryCrafting(new Container() { @Override public boolean canInteractWith(EntityPlayer playerIn) {