Fix GroupManager.RenameGroup() overwriting unsaved config changes
This commit is contained in:
parent
ec435e266e
commit
639ffb3c7c
1 changed files with 2 additions and 0 deletions
|
|
@ -275,6 +275,8 @@ namespace TShockAPI.DB
|
|||
group.Parent = newGroup;
|
||||
}
|
||||
|
||||
// Read the config file to prevent the possible loss of any unsaved changes
|
||||
TShock.Config = ConfigFile.Read(FileTools.ConfigPath);
|
||||
if (TShock.Config.DefaultGuestGroupName == oldGroup.Name)
|
||||
{
|
||||
TShock.Config.DefaultGuestGroupName = newGroup.Name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue