Skip to content

Commit

Permalink
Merge pull request #85 from sTiKyt/patch-1
Browse files Browse the repository at this point in the history
Fixed mob corpses being unsellable
  • Loading branch information
Cheackraze committed Jul 27, 2023
2 parents e092216 + 2245668 commit e756314
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 e756314

Please sign in to comment.