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

This commit is contained in:
Joonas Rikkonen
2018-02-28 15:38:55 +02:00
parent f5277ce661
commit e29655c81b

View File

@@ -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;