someone had an issue i'm not sure if this will fix it but won't harm

This commit is contained in:
NEZNAMY committed 2020-03-13 15:13:39 +01:00
1 parent 378b8d9891
commit b913250b35
1 file changed
+1 -1
@@ -210,7 +210,7 @@ public class ConfigurationFile{
Writer writer = new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8);
yaml.dump(values, writer);
writer.close();
fixHeader();
if (!hasHeader()) fixHeader();
} catch (Throwable e) {
Shared.errorManager.criticalError("Failed to save yaml file " + file.getPath(), e);
}