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.ToggleLightingAction);
|
||||||
_actions.RemoveAction(uid, component.ToggleFoVAction);
|
_actions.RemoveAction(uid, component.ToggleFoVAction);
|
||||||
_actions.RemoveAction(uid, component.ToggleGhostsAction);
|
_actions.RemoveAction(uid, component.ToggleGhostsAction);
|
||||||
_lightManager.Enabled = true;
|
|
||||||
|
|
||||||
if (uid != _playerManager.LocalPlayer?.ControlledEntity)
|
if (uid != _playerManager.LocalPlayer?.ControlledEntity)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
_lightManager.Enabled = true;
|
||||||
|
|
||||||
if (component.IsAttached)
|
if (component.IsAttached)
|
||||||
{
|
{
|
||||||
GhostVisibility = false;
|
GhostVisibility = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user