diff --git a/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs b/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs index 7ca5fbe690a..291208df6da 100644 --- a/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs +++ b/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs @@ -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)) @@ -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; }