diff --git a/modules/SilkSpawners/src/main/java/de/dustplanet/util/CommentedConfiguration.java b/modules/SilkSpawners/src/main/java/de/dustplanet/util/CommentedConfiguration.java index 91cb5d2c..bc78e5fa 100644 --- a/modules/SilkSpawners/src/main/java/de/dustplanet/util/CommentedConfiguration.java +++ b/modules/SilkSpawners/src/main/java/de/dustplanet/util/CommentedConfiguration.java @@ -30,6 +30,7 @@ * @author timbru31 */ public class CommentedConfiguration extends YamlConfiguration { + private static final String BLANK_FILE = "{}\n"; private final HashMap comments; private final File file; private final DumperOptions yamlOptions = new DumperOptions(); @@ -58,7 +59,7 @@ public String saveToString() { String dump = yaml.dump(getValues(false)); - if (dump.equals(BLANK_CONFIG)) { + if (BLANK_FILE.equals(dump)) { dump = ""; }