From ff322bd7a2c49c8abf590fc3e687cf381a570cb7 Mon Sep 17 00:00:00 2001 From: Regalis Date: Thu, 1 Jun 2017 19:38:20 +0300 Subject: [PATCH] Fixed "component doesn't have a GUIFrame" errors when selecting an artifact holder (or any other selectable item with non-selectable components) --- Subsurface/Source/Items/Item.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Subsurface/Source/Items/Item.cs b/Subsurface/Source/Items/Item.cs index a2eae6222..26f502ddc 100644 --- a/Subsurface/Source/Items/Item.cs +++ b/Subsurface/Source/Items/Item.cs @@ -1212,7 +1212,7 @@ namespace Barotrauma foreach (ItemComponent ic in components) { - ic.UpdateHUD(character); + if (ic.CanBeSelected) ic.UpdateHUD(character); } }