Compare commits

...

2 Commits
6.0.5 ... 6.0.6

Author SHA1 Message Date
Auxilor
70a4a06d4f Updated to 6.0.6 2021-07-24 01:12:55 +01:00
Auxilor
bbee18fd8a JSON config files now have same deletion behaviour as yaml config files 2021-07-24 01:12:46 +01:00
2 changed files with 4 additions and 3 deletions

View File

@@ -116,8 +116,9 @@ public class EcoLoadableJSONConfig extends EcoJSONConfigWrapper implements Loada
@Override
public void save() throws IOException {
configFile.delete();
Files.write(configFile.toPath(), this.toPlaintext().getBytes(), StandardOpenOption.CREATE, StandardOpenOption.WRITE);
if (configFile.delete()) {
Files.write(configFile.toPath(), this.toPlaintext().getBytes(), StandardOpenOption.CREATE, StandardOpenOption.WRITE);
}
}

View File

@@ -1,2 +1,2 @@
version = 6.0.5
version = 6.0.6
plugin-name = eco