diff --git a/Robust.Shared/Containers/SharedContainerSystem.cs b/Robust.Shared/Containers/SharedContainerSystem.cs index 88f9e0be181..bf70aef9611 100644 --- a/Robust.Shared/Containers/SharedContainerSystem.cs +++ b/Robust.Shared/Containers/SharedContainerSystem.cs @@ -377,7 +377,7 @@ public bool TryFindComponentOnEntityContainerOrParent( if (!xform.ParentUid.Valid) return false; - if (entityQuery.Resolve(xform.ParentUid, ref foundComponent, false)) + if (entityQuery.TryComp(xform.ParentUid, out foundComponent)) return true; return TryFindComponentOnEntityContainerOrParent(xform.ParentUid, entityQuery, ref foundComponent);