mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 07:04:57 +01:00
Fixes offlining an instance not changing the config
This commit is contained in:
@@ -126,6 +126,13 @@ namespace TGServerService
|
||||
return Config.Directory;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets <see cref="InstanceConfig.Enabled"/> of <see cref="Config"/> to <see langword="false"/>
|
||||
/// </summary>
|
||||
public void Offline()
|
||||
{
|
||||
Config.Enabled = false;
|
||||
}
|
||||
|
||||
//mostly generated code with a call to RunDisposals()
|
||||
//you don't need to open this
|
||||
|
||||
Reference in New Issue
Block a user