Cleaned up obsolete properties from MobStateComponent (#13097)
Co-authored-by: Jezithyr <Jezithyr@gmail.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Content.Server.Chat.Managers;
|
||||
using Content.Server.GameTicking.Rules.Configurations;
|
||||
using Content.Server.MobState;
|
||||
using Content.Shared.CCVar;
|
||||
using Content.Shared.Damage;
|
||||
using Content.Shared.MobState.Components;
|
||||
@@ -19,6 +20,7 @@ public sealed class DeathMatchRuleSystem : GameRuleSystem
|
||||
|
||||
[Dependency] private readonly IPlayerManager _playerManager = default!;
|
||||
[Dependency] private readonly IChatManager _chatManager = default!;
|
||||
[Dependency] private readonly MobStateSystem _mobStateSystem = default!;
|
||||
[Dependency] private readonly IConfigurationManager _cfg = default!;
|
||||
|
||||
private const float RestartDelay = 10f;
|
||||
@@ -106,7 +108,7 @@ public sealed class DeathMatchRuleSystem : GameRuleSystem
|
||||
|| !TryComp(playerEntity, out MobStateComponent? state))
|
||||
continue;
|
||||
|
||||
if (!state.IsAlive())
|
||||
if (!_mobStateSystem.IsAlive(playerEntity, state))
|
||||
continue;
|
||||
|
||||
// Found a second person alive, nothing decided yet!
|
||||
|
||||
Reference in New Issue
Block a user