Skip to content

Commit

Permalink
Update CargoSystem.Shuttle.cs (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvir001 authored Aug 26, 2023
1 parent 38fbcad commit 89b1d23
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,6 @@ private bool CanSell(EntityUid uid, TransformComponent xform)
return true;
}



// Recursively check for mobs at any point.
var children = xform.ChildEnumerator;
while (children.MoveNext(out var child))
Expand All @@ -305,6 +303,12 @@ private bool CanSell(EntityUid uid, TransformComponent xform)
return false;
}

// Look for blacklisted items and stop the selling of the container.
if (_blacklistQuery.HasComponent(uid))
{
return false;
}

return true;
}

Expand Down

0 comments on commit 89b1d23

Please sign in to comment.