fix legacy file updater causing a stack overflow crash

This commit is contained in:
Oth3r 2025-07-19 20:53:37 -05:00
commit 89536e3070
Failed to generate hash of commit

View file

@ -345,6 +345,11 @@ public class ServerConfig implements CustomFile<ServerConfig> {
} catch (Exception e) {
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.setSittingConfig(sittingConfig);
serverConfig.save();
sittingConfig.save();
} catch (Exception e) {
Data.LOGGER.error("Error loading legacy config: %s", e.getMessage());
}