Remove or fix broken Dirty() calls. (#18933)

This commit is contained in:
Leon Friedrich
2023-08-10 16:17:43 +12:00
committed by GitHub
parent 705a5e94db
commit 9da4679220
5 changed files with 29 additions and 15 deletions

View File

@@ -322,10 +322,12 @@ public sealed class MobThresholdSystem : EntitySystem
}
if (mobState.CurrentState != MobState.Dead || thresholds.AllowRevives)
{
thresholds.CurrentThresholdState = newState;
_mobStateSystem.UpdateMobState(target, mobState);
Dirty(target, thresholds);
}
Dirty(target);
_mobStateSystem.UpdateMobState(target, mobState);
}
private void UpdateAlerts(EntityUid target, MobState currentMobState, MobThresholdsComponent? threshold = null,