replace all uses of TryGetContainingContainer with non-obsolete overload (#30583)
* replace all uses of TryGetContainerContainer with non-obsolete overload * rerun
This commit is contained in:
@@ -1171,7 +1171,7 @@ namespace Content.Shared.Interaction
|
||||
/// </summary>
|
||||
public bool CanAccessViaStorage(EntityUid user, EntityUid target)
|
||||
{
|
||||
if (!_containerSystem.TryGetContainingContainer(target, out var container))
|
||||
if (!_containerSystem.TryGetContainingContainer((target, null, null), out var container))
|
||||
return false;
|
||||
|
||||
return CanAccessViaStorage(user, target, container);
|
||||
@@ -1197,7 +1197,7 @@ namespace Content.Shared.Interaction
|
||||
if (Deleted(target))
|
||||
return false;
|
||||
|
||||
if (!_containerSystem.TryGetContainingContainer(target, out var container))
|
||||
if (!_containerSystem.TryGetContainingContainer((target, null, null), out var container))
|
||||
return false;
|
||||
|
||||
var wearer = container.Owner;
|
||||
|
||||
Reference in New Issue
Block a user