mirror of
https://github.com/Oth3r/Sit.git
synced 2025-09-20 00:13:21 +02:00
Merge branch 'master' into 1.21.5
# Conflicts: # gradle.properties
This commit is contained in:
commit
9f79a99044
5 changed files with 29 additions and 18 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue