mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-13 16:54:06 +00:00
Fixed the config file re-saving if nothing changed.
This commit is contained in:
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_) {
|
||||
|
||||
Reference in new issue
Block a user