Content ecs containers (#22484)

This commit is contained in:
TemporalOroboros
2023-12-27 21:30:03 -08:00
committed by GitHub
parent 1d06539432
commit 7a77d6d5dd
72 changed files with 172 additions and 160 deletions

View File

@@ -233,7 +233,7 @@ namespace Content.Server.Medical
if (!HasComp<BodyComponent>(to_insert))
return;
scannerComponent.BodyContainer.Insert(to_insert);
_containerSystem.Insert(to_insert, scannerComponent.BodyContainer);
UpdateAppearance(uid, scannerComponent);
}
@@ -245,7 +245,7 @@ namespace Content.Server.Medical
if (scannerComponent.BodyContainer.ContainedEntity is not { Valid: true } contained)
return;
scannerComponent.BodyContainer.Remove(contained);
_containerSystem.Remove(contained, scannerComponent.BodyContainer);
_climbSystem.ForciblySetClimbing(contained, uid);
UpdateAppearance(uid, scannerComponent);
}