(8339ae744) Don't allow autointeracting with contained items (e.g. picking up an ammunition box from a loader) if another item is currently selected. Makes it less likely for players to accidentally pick up items from containers when they deselect another item.

This commit is contained in:
Joonas Rikkonen
2019-03-28 18:10:13 +02:00
parent b9556280fa
commit 4ce2316cb2
2 changed files with 34 additions and 1 deletions
@@ -155,7 +155,7 @@ namespace Barotrauma.Items.Components
{
if (item.Container != null) { return false; }
if (AutoInteractWithContained)
if (AutoInteractWithContained && character.SelectedConstruction == null)
{
foreach (Item contained in Inventory.Items)
{