mirror of
https://github.com/Oth3r/Sit.git
synced 2025-09-19 07:53:22 +02:00
fix legacy file updater causing a stack overflow crash
This commit is contained in:
parent
1bb8409931
commit
89536e3070
1 changed files with 5 additions and 2 deletions
|
@ -345,6 +345,11 @@ public class ServerConfig implements CustomFile<ServerConfig> {
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Data.LOGGER.error("Failed to delete the old Sit! config.");
|
Data.LOGGER.error("Failed to delete the old Sit! config.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// save the updated configs
|
||||||
|
FileData.saveFiles();
|
||||||
|
|
||||||
|
// continue loading as normal...
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -494,8 +499,6 @@ public class ServerConfig implements CustomFile<ServerConfig> {
|
||||||
|
|
||||||
FileData.setServerConfig(serverConfig);
|
FileData.setServerConfig(serverConfig);
|
||||||
FileData.setSittingConfig(sittingConfig);
|
FileData.setSittingConfig(sittingConfig);
|
||||||
serverConfig.save();
|
|
||||||
sittingConfig.save();
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Data.LOGGER.error("Error loading legacy config: %s", e.getMessage());
|
Data.LOGGER.error("Error loading legacy config: %s", e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue