mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Rename mismatching version number file to another numba
This commit is contained in:
parent
5d5b8b78d4
commit
593e10eec2
@ -129,8 +129,12 @@ public class IrisSettings {
|
||||
|
||||
if (settings.getConfigurationVersion() != new IrisSettings().getConfigurationVersion()) {
|
||||
Iris.error("Existing configuration's version does not match current configuration version! Resetting...");
|
||||
if (s.renameTo(new File(s.getParentFile().getAbsolutePath() + "/settings-old.json"))) {
|
||||
Iris.info("Renamed settings.json to settings-old.json");
|
||||
}
|
||||
settings = new IrisSettings();
|
||||
settings.forceSave();
|
||||
Iris.info("Created a new settings file");
|
||||
}
|
||||
|
||||
return settings;
|
||||
|
Loading…
x
Reference in New Issue
Block a user