From e29655c81b9c91ebb62c4b9c5c1240cc9dd707d9 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Wed, 28 Feb 2018 15:38:55 +0200 Subject: [PATCH] Fixed clients forcing remote players to pick an item when it's being selected, causing them to press buttons and start deattaching them when the player is actually just rewiring the button. Closes #251 --- Barotrauma/BarotraumaShared/Source/Items/Item.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaShared/Source/Items/Item.cs b/Barotrauma/BarotraumaShared/Source/Items/Item.cs index b475fb2fe..fc8ff8681 100644 --- a/Barotrauma/BarotraumaShared/Source/Items/Item.cs +++ b/Barotrauma/BarotraumaShared/Source/Items/Item.cs @@ -1086,7 +1086,7 @@ namespace Barotrauma } else { - if (forceSelectKey) + if (forceSelectKey && ic.CanBeSelected) { if (ic.PickKey == InputType.Select) pickHit = true; if (ic.SelectKey == InputType.Select) selectHit = true;