From 19a8a2c6b802af0c14a8df59191e1a0b872a3691 Mon Sep 17 00:00:00 2001 From: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com> Date: Sat, 6 Mar 2021 02:32:23 -0800 Subject: [PATCH] Set OccludesLight to false for hands and inventory (#3531) --- Content.Server/GameObjects/Components/GUI/HandsComponent.cs | 1 + .../GameObjects/Components/GUI/InventoryComponent.cs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Content.Server/GameObjects/Components/GUI/HandsComponent.cs b/Content.Server/GameObjects/Components/GUI/HandsComponent.cs index 9231646d6c..4744d8e3ad 100644 --- a/Content.Server/GameObjects/Components/GUI/HandsComponent.cs +++ b/Content.Server/GameObjects/Components/GUI/HandsComponent.cs @@ -458,6 +458,7 @@ namespace Content.Server.GameObjects.Components.GUI } var container = ContainerHelpers.CreateContainer(Owner, $"hand {_nextHand++}"); + container.OccludesLight = false; var hand = new Hand(this, name, container); _hands.Add(hand); diff --git a/Content.Server/GameObjects/Components/GUI/InventoryComponent.cs b/Content.Server/GameObjects/Components/GUI/InventoryComponent.cs index 490c657234..c338708ffa 100644 --- a/Content.Server/GameObjects/Components/GUI/InventoryComponent.cs +++ b/Content.Server/GameObjects/Components/GUI/InventoryComponent.cs @@ -426,7 +426,9 @@ namespace Content.Server.GameObjects.Components.GUI Dirty(); - _slotContainers[slot] = ContainerHelpers.CreateContainer(Owner, GetSlotString(slot)); + var container = ContainerHelpers.CreateContainer(Owner, GetSlotString(slot)); + container.OccludesLight = false; + _slotContainers[slot] = container; OnItemChanged?.Invoke();