Non-indexed remove causes a full reset (@Xero's issue)
Removed ignore last session option. Implicitly true now. Asteroid generation options (fixes #151)
This commit is contained in:
@@ -26,6 +26,7 @@ namespace Torch.Server.ViewModels
|
||||
public ConfigDedicatedViewModel(MyConfigDedicated<MyObjectBuilder_SessionSettings> configDedicated)
|
||||
{
|
||||
_config = configDedicated;
|
||||
_config.IgnoreLastSession = true;
|
||||
SessionSettings = new SessionSettingsViewModel(_config.SessionSettings);
|
||||
Administrators = string.Join(Environment.NewLine, _config.Administrators);
|
||||
Banned = string.Join(Environment.NewLine, _config.Banned);
|
||||
@@ -53,6 +54,8 @@ namespace Torch.Server.ViewModels
|
||||
Log.Warn($"'{mod}' is not a valid mod ID.");
|
||||
}
|
||||
|
||||
// Never ever
|
||||
_config.IgnoreLastSession = true;
|
||||
_config.Save(path);
|
||||
}
|
||||
|
||||
@@ -79,12 +82,6 @@ namespace Torch.Server.ViewModels
|
||||
set { _config.GroupID = value; OnPropertyChanged(); }
|
||||
}
|
||||
|
||||
public bool IgnoreLastSession
|
||||
{
|
||||
get { return _config.IgnoreLastSession; }
|
||||
set { _config.IgnoreLastSession = value; OnPropertyChanged(); }
|
||||
}
|
||||
|
||||
public string IP
|
||||
{
|
||||
get { return _config.IP; }
|
||||
|
Reference in New Issue
Block a user