Skip to content

Commit

Permalink
Fix petcarrier
Browse files Browse the repository at this point in the history
  • Loading branch information
Ady4ik committed Sep 21, 2024
1 parent b653acf commit 65f9085
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,13 @@ public bool CanInsert(EntityUid toInsert, EntityUid container, SharedEntityStora
if (component.Contents.ContainedEntities.Count >= component.Capacity)
return false;

// SS220 fix #1121 begin
SharedEntityStorageComponent? insertedComp = null;

if (ResolveStorage(toInsert, ref insertedComp))
return false;
// SS220 fix #1121 end

return CanFit(toInsert, container, component);
}

Expand Down

0 comments on commit 65f9085

Please sign in to comment.