Fix body bags not taking humans (#6125)
This commit is contained in:
@@ -48,9 +48,13 @@ namespace Content.Server.Foldable
|
||||
if (TryComp(uid, out StrapComponent? strap) && strap.BuckledEntities.Any())
|
||||
return false;
|
||||
|
||||
// Also check if this entity is "open" (e.g., body bags)
|
||||
return !TryComp(uid, out EntityStorageComponent? storage) || !storage.Open;
|
||||
if (!TryComp(uid, out EntityStorageComponent? storage))
|
||||
return true;
|
||||
|
||||
if (storage.Open)
|
||||
return false;
|
||||
|
||||
return !storage.Contents.ContainedEntities.Any();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user