]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix ghost lighting being disabled when any ghost is removed (#15053)
authorDrSmugleaf <DrSmugleaf@users.noreply.github.com>
Sat, 1 Apr 2023 22:56:01 +0000 (15:56 -0700)
committerGitHub <noreply@github.com>
Sat, 1 Apr 2023 22:56:01 +0000 (17:56 -0500)
Content.Client/Ghost/GhostSystem.cs

index 73fb26f1dd6504d5cb69ec1d35e8525a9feab2a8..e93735fad9fa728b575d49aada1fb314a6e9f34c 100644 (file)
@@ -116,11 +116,12 @@ namespace Content.Client.Ghost
             _actions.RemoveAction(uid, component.ToggleLightingAction);
             _actions.RemoveAction(uid, component.ToggleFoVAction);
             _actions.RemoveAction(uid, component.ToggleGhostsAction);
-            _lightManager.Enabled = true;
 
             if (uid != _playerManager.LocalPlayer?.ControlledEntity)
                 return;
 
+            _lightManager.Enabled = true;
+
             if (component.IsAttached)
             {
                 GhostVisibility = false;