mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
Fix ghost lighting being disabled when any ghost is removed (#15053)
This commit is contained in:
parent
13a19ef60f
commit
0daa4e12d4
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue