From: DrSmugleaf Date: Sat, 1 Apr 2023 22:56:01 +0000 (-0700) Subject: Fix ghost lighting being disabled when any ghost is removed (#15053) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=0daa4e12d480b70781cf88de14508d8defa5a646;p=space-station-14.git Fix ghost lighting being disabled when any ghost is removed (#15053) --- diff --git a/Content.Client/Ghost/GhostSystem.cs b/Content.Client/Ghost/GhostSystem.cs index 73fb26f1dd..e93735fad9 100644 --- a/Content.Client/Ghost/GhostSystem.cs +++ b/Content.Client/Ghost/GhostSystem.cs @@ -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;