mirror of
https://github.com/space-wizards/space-station-14.git
synced 2026-02-15 03:31:30 +01:00
Fix ghost lighting being disabled when any ghost is removed (#15053)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user