Save conversions.

This commit is contained in:
Brianna 2019-11-03 20:08:48 -05:00
parent 8fc955afe9
commit b86ee7b29d
2 changed files with 3 additions and 2 deletions

View File

@ -613,6 +613,7 @@ public class Config extends ConfigSection {
}
yamlOptions.setIndent(indentation);
yamlOptions.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
yamlOptions.setSplitLines(false);
yamlRepresenter.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
StringWriter str = new StringWriter();
if (headerComment != null) {

View File

@ -236,9 +236,9 @@ public class Locale {
added.stream().collect(Collectors.joining("\n"))
);
}
existingLang.setRootNodeSpacing(0);
existingLang.save();
}
existingLang.setRootNodeSpacing(0);
existingLang.save();
return !added.isEmpty();
} catch (InvalidConfigurationException ex) {
plugin.getLogger().log(Level.SEVERE, "Error checking config " + existingFile.getName(), ex);