mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-27 20:45:27 +01:00
Save conversions.
This commit is contained in:
parent
8fc955afe9
commit
b86ee7b29d
@ -613,6 +613,7 @@ public class Config extends ConfigSection {
|
|||||||
}
|
}
|
||||||
yamlOptions.setIndent(indentation);
|
yamlOptions.setIndent(indentation);
|
||||||
yamlOptions.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
|
yamlOptions.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
|
||||||
|
yamlOptions.setSplitLines(false);
|
||||||
yamlRepresenter.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
|
yamlRepresenter.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
|
||||||
StringWriter str = new StringWriter();
|
StringWriter str = new StringWriter();
|
||||||
if (headerComment != null) {
|
if (headerComment != null) {
|
||||||
|
@ -236,9 +236,9 @@ public class Locale {
|
|||||||
added.stream().collect(Collectors.joining("\n"))
|
added.stream().collect(Collectors.joining("\n"))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
existingLang.setRootNodeSpacing(0);
|
|
||||||
existingLang.save();
|
|
||||||
}
|
}
|
||||||
|
existingLang.setRootNodeSpacing(0);
|
||||||
|
existingLang.save();
|
||||||
return !added.isEmpty();
|
return !added.isEmpty();
|
||||||
} catch (InvalidConfigurationException ex) {
|
} catch (InvalidConfigurationException ex) {
|
||||||
plugin.getLogger().log(Level.SEVERE, "Error checking config " + existingFile.getName(), ex);
|
plugin.getLogger().log(Level.SEVERE, "Error checking config " + existingFile.getName(), ex);
|
||||||
|
Loading…
Reference in New Issue
Block a user