Maybe fix dead bug (#24445)

This commit is contained in:
metalgearsloth
2024-01-24 13:42:55 +11:00
committed by GitHub
parent 1af9315a53
commit 016e535dea
2 changed files with 3 additions and 1 deletions

View File

@@ -172,7 +172,7 @@ public partial class SharedBodySystem
if (!Resolve(parent, ref bodyComp, false))
return;
if (component.IsVital && !GetBodyChildrenOfType(parent, component.PartType, bodyComp).Any())
if (_timing.IsFirstTimePredicted && component.IsVital && !GetBodyChildrenOfType(parent, component.PartType, bodyComp).Any())
{
// TODO BODY SYSTEM KILL : remove this when wounding and required parts are implemented properly
var damage = new DamageSpecifier(Prototypes.Index<DamageTypePrototype>("Bloodloss"), 300);