ECS and cleanup body system, merge body templates and presets into body prototypes (#11991)
Co-authored-by: Jezithyr <Jezithyr@gmail.com>
This commit is contained in:
@@ -11,9 +11,9 @@ namespace Content.Server.Destructible.Thresholds.Behaviors
|
||||
|
||||
public void Execute(EntityUid owner, DestructibleSystem system)
|
||||
{
|
||||
if (system.EntityManager.TryGetComponent(owner, out SharedBodyComponent? body))
|
||||
if (system.EntityManager.TryGetComponent(owner, out BodyComponent? body))
|
||||
{
|
||||
body.Gib(_recursive);
|
||||
system.BodySystem.GibBody(owner, _recursive, body);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user