Skip to content

Commit

Permalink
Fixed mob corpses being unsellable
Browse files Browse the repository at this point in the history
  • Loading branch information
sTiKyt authored Jul 25, 2023
1 parent 20f47c0 commit 2245668
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,16 @@ private bool CanSell(EntityUid uid, TransformComponent xform)
{
if (_mobQuery.HasComponent(uid))
{
return false;
if (_mobQuery.GetComponent(uid).CurrentState == MobState.Alive)
{
return false;
}

return true;
}



// Recursively check for mobs at any point.
var children = xform.ChildEnumerator;
while (children.MoveNext(out var child))
Expand Down

0 comments on commit 2245668

Please sign in to comment.