From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Thu, 22 Aug 2024 17:05:17 +0000 (+1000) Subject: Fix inventory GUI for non-inventory entities (#31306) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=6553fd3d6ea764c502f7f6839c6cfcc148aa42c9;p=space-station-14.git Fix inventory GUI for non-inventory entities (#31306) Default to invisible and only set visible if itemslots gets initialised. --- diff --git a/Content.Client/UserInterface/Systems/Inventory/InventoryUIController.cs b/Content.Client/UserInterface/Systems/Inventory/InventoryUIController.cs index 5d7a775104..49a2fba898 100644 --- a/Content.Client/UserInterface/Systems/Inventory/InventoryUIController.cs +++ b/Content.Client/UserInterface/Systems/Inventory/InventoryUIController.cs @@ -21,6 +21,7 @@ using Robust.Client.UserInterface.Controls; using Robust.Shared.Input; using Robust.Shared.Input.Binding; using Robust.Shared.Map; +using Robust.Shared.Player; using Robust.Shared.Utility; using static Content.Client.Inventory.ClientInventorySystem; @@ -399,6 +400,9 @@ public sealed class InventoryUIController : UIController, IOnStateEntered +