From c4ecdde1108e78769987e6452bc8b0eaaad95867 Mon Sep 17 00:00:00 2001 From: Nedelosk Date: Fri, 7 Apr 2017 21:44:20 +0200 Subject: [PATCH] Fix #1426 A way to change how much sand an tree multifarm gives when a tree grows --- lang | 2 +- src/main/java/forestry/core/blocks/BlockHumus.java | 3 ++- src/main/java/forestry/core/config/Config.java | 5 +++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lang b/lang index 1ecd82f36..f5300f059 160000 --- a/lang +++ b/lang @@ -1 +1 @@ -Subproject commit 1ecd82f36f487e27c977c92022436ba74c7d3c35 +Subproject commit f5300f059b2a0e55ecea645536acde0406152559 diff --git a/src/main/java/forestry/core/blocks/BlockHumus.java b/src/main/java/forestry/core/blocks/BlockHumus.java index fd2347706..02b6d2dc1 100644 --- a/src/main/java/forestry/core/blocks/BlockHumus.java +++ b/src/main/java/forestry/core/blocks/BlockHumus.java @@ -7,6 +7,7 @@ import java.util.Random; import forestry.api.core.IItemModelRegister; import forestry.api.core.IModelManager; import forestry.core.CreativeTabForestry; +import forestry.core.config.Config; import forestry.core.config.Constants; import net.minecraft.block.Block; import net.minecraft.block.BlockLog; @@ -32,7 +33,7 @@ import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class BlockHumus extends Block implements IItemModelRegister { - private static final int degradeDelimiter = 3; + private static final int degradeDelimiter = Config.humusDegradeDelimiter; public static final PropertyInteger DEGRADE = PropertyInteger.create("degrade", 0, degradeDelimiter); // degradation level of humus public BlockHumus() { diff --git a/src/main/java/forestry/core/config/Config.java b/src/main/java/forestry/core/config/Config.java index 88959fbe2..17a76f985 100755 --- a/src/main/java/forestry/core/config/Config.java +++ b/src/main/java/forestry/core/config/Config.java @@ -54,6 +54,9 @@ public class Config { // Graphics public static boolean enableParticleFX = true; + //Humus + public static int humusDegradeDelimiter = 3; + // Genetics public static boolean pollinateVanillaTrees = true; public static float researchMutationBoostMultiplier = 1.5f; @@ -213,6 +216,8 @@ public class Config { enableBackpackResupply = configCommon.getBooleanLocalized("performance", "backpacks.resupply", enableBackpackResupply); + humusDegradeDelimiter = configCommon.getIntLocalized("tweaks.humus", "degradeDelimiter", humusDegradeDelimiter, 1, 10); + //planterThrottle = configCommon.getIntLocalized("performance", "performance.planter", planterThrottle, 1, 2000); //propThrottle.Comment = "higher numbers increase working speeds of planters but also increase cpu load.";