Skip to content

Commit

Permalink
Merge pull request #379 from Fansana/fix-interaction-system
Browse files Browse the repository at this point in the history
Fix Interaction System
  • Loading branch information
Fansana authored Nov 25, 2024
2 parents 51df2b5 + c555741 commit 667a8ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Shared/Interaction/SharedInteractionSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,7 @@ public bool CanAccessViaStorage(EntityUid user, EntityUid target, BaseContainer
return false;

// we don't check if the user can access the storage entity itself. This should be handed by the UI system.
return _ui.IsUiOpen(target, StorageComponent.StorageUiKey.Key, user);
return _ui.IsUiOpen(container.Owner, StorageComponent.StorageUiKey.Key, user);
}

/// <summary>
Expand Down

0 comments on commit 667a8ed

Please sign in to comment.