Remove IMobStateComponent (#5220)
This commit is contained in:
committed by
GitHub
parent
4236551d86
commit
f5b11d6af8
@@ -2,7 +2,7 @@ using Content.Server.GameTicking;
|
||||
using Content.Server.Ghost.Components;
|
||||
using Content.Shared.Examine;
|
||||
using Content.Shared.Ghost;
|
||||
using Content.Shared.MobState;
|
||||
using Content.Shared.MobState.Components;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
using Robust.Shared.Localization;
|
||||
@@ -131,7 +131,7 @@ namespace Content.Server.Mind.Components
|
||||
}
|
||||
|
||||
var dead =
|
||||
Owner.TryGetComponent<IMobStateComponent>(out var state) &&
|
||||
Owner.TryGetComponent<MobStateComponent>(out var state) &&
|
||||
state.IsDead();
|
||||
|
||||
if (!HasMind)
|
||||
|
||||
Reference in New Issue
Block a user