From 0daa4e12d480b70781cf88de14508d8defa5a646 Mon Sep 17 00:00:00 2001 From: DrSmugleaf Date: Sat, 1 Apr 2023 15:56:01 -0700 Subject: [PATCH] Fix ghost lighting being disabled when any ghost is removed (#15053) --- Content.Client/Ghost/GhostSystem.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.51.2