@@ -210,7 +210,11 @@ public abstract partial class InventorySystem
|
||||
return false;
|
||||
|
||||
// Can the actor reach the item?
|
||||
if (_interactionSystem.InRangeAndAccessible(actor, itemUid))
|
||||
if (_interactionSystem.InRangeUnobstructed(actor, itemUid) && _containerSystem.IsInSameOrParentContainer(actor, itemUid))
|
||||
return true;
|
||||
|
||||
// Is the item in an open storage UI, i.e., is the user quick-equipping from an open backpack?
|
||||
if (_interactionSystem.CanAccessViaStorage(actor, itemUid))
|
||||
return true;
|
||||
|
||||
// Is the actor currently stripping the target? Here we could check if the actor has the stripping UI open, but
|
||||
|
||||
Reference in New Issue
Block a user