]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fool players with status command (#40460)
authorSamuka-C <47865393+Samuka-C@users.noreply.github.com>
Sun, 21 Sep 2025 21:22:12 +0000 (18:22 -0300)
committerGitHub <noreply@github.com>
Sun, 21 Sep 2025 21:22:12 +0000 (23:22 +0200)
Content.Server/GameTicking/GameTicker.StatusShell.cs

index 4d84f78291ad1ad29e3ea2a211c2f30f10231f04..3698c91f4ecd3c77659b97028fea04959fff8296 100644 (file)
@@ -51,7 +51,7 @@ namespace Content.Server.GameTicking
                 jObject["panic_bunker"] = _cfg.GetCVar(CCVars.PanicBunkerEnabled);
                 jObject["run_level"] = (int) _runLevel;
                 if (preset != null)
-                    jObject["preset"] = Loc.GetString(preset.ModeTitle);
+                    jObject["preset"] = (Decoy == null) ? Loc.GetString(preset.ModeTitle) : Loc.GetString(Decoy.ModeTitle);
                 if (_runLevel >= GameRunLevel.InRound)
                 {
                     jObject["round_start_time"] = _roundStartDateTime.ToString("o");