From 9cd3b9af5b04823fc4068b3442ae09caf951d780 Mon Sep 17 00:00:00 2001 From: mezz Date: Sun, 11 Jan 2015 22:36:47 -0800 Subject: [PATCH] Fix forced retrogen not disabling itself after being set --- src/main/java/forestry/core/config/Config.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/forestry/core/config/Config.java b/src/main/java/forestry/core/config/Config.java index 9419ec6f2..677aff035 100755 --- a/src/main/java/forestry/core/config/Config.java +++ b/src/main/java/forestry/core/config/Config.java @@ -134,13 +134,14 @@ public class Config { doRetrogen = Boolean.parseBoolean(retroGen.value); String forcedRetroGenMessage = "Forestry will attempt worldGen in all chunks for this game instance. Config option will be set to false after this run."; - Property forceRetroGen = config.get("world.retrogen.forced", CATEGORY_COMMON, false); + String forcedRetroGenKey = "world.retrogen.forced"; + Property forceRetroGen = config.get(forcedRetroGenKey, CATEGORY_COMMON, false); forceRetroGen.comment = "Set to true, " + forcedRetroGenMessage; forceRetrogen = Boolean.parseBoolean(forceRetroGen.value); if (forceRetrogen) { Proxies.log.info(forcedRetroGenMessage); - config.set("world.generate.retrogen.forced", CATEGORY_COMMON, false); + config.set(forcedRetroGenKey, CATEGORY_COMMON, false); doRetrogen = true; } else if (doRetrogen) { Proxies.log.info(retroGenMessage);