Fix ghost lighting being disabled when any ghost is removed (#15053)

This commit is contained in:
DrSmugleaf
2023-04-01 15:56:01 -07:00
committed by GitHub
parent 13a19ef60f
commit 0daa4e12d4

View 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;