Fixed the config file re-saving if nothing changed.

This commit is contained in:
Vasco Lavos committed 2014-06-11 12:41:46 +01:00
1 parent 40d87719a5
commit 49f3a90e20
1 file changed
+2 -1
@@ -98,7 +98,8 @@ public final class ConfigHandler {
desc = "The density of each flower patch generataed, defaults to 32, the lower the number, the less each patch will have.";
flowerDensity = loadPropInt("worldgen.flower.density", desc, 32);
config.save();
if(config.hasChanged())
config.save();
}
public static int loadPropInt(String propName, String desc, int default_) {