Fixed being unable to drag inventory slots if the subinventory of the slot is highlighted
This commit is contained in:
@@ -186,7 +186,7 @@ namespace Barotrauma
|
||||
|
||||
if (mouseOn &&
|
||||
(draggingItem != null || selectedSlot == null || selectedSlot.Slot == slot) &&
|
||||
(highlightedSubInventory == null || highlightedSubInventory == this || highlightedSubInventorySlot?.Slot == slot))
|
||||
(highlightedSubInventory == null || highlightedSubInventory == this || highlightedSubInventorySlot?.Slot == slot || highlightedSubInventory.Owner == item))
|
||||
{
|
||||
slot.State = GUIComponent.ComponentState.Hover;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user