Do not interrupt mapping with auto-shuttle (#12656)

This commit is contained in:
Kevin Zheng
2022-11-17 15:14:44 -08:00
committed by GitHub
parent 257a9db5c1
commit 28d9a994f9

View File

@@ -118,7 +118,10 @@ namespace Content.Server.Mapping
var cfg = IoCManager.Resolve<IConfigurationManager>();
// don't interrupt mapping with events or auto-shuttle
shell.ExecuteCommand("sudo cvar events.enabled false");
shell.ExecuteCommand("sudo cvar shuttle.auto_call_time 0");
if (cfg.GetCVar(CCVars.AutosaveEnabled))
shell.ExecuteCommand($"toggleautosave {mapId} {toLoad ?? "NEWMAP"}");
shell.ExecuteCommand($"tp 0 0 {mapId}");