MobStates use EntityUid

This commit is contained in:
Vera Aguilera Puerto
2021-11-09 12:15:12 +01:00
parent 5cec5c421c
commit e5c062559a
11 changed files with 53 additions and 53 deletions

View File

@@ -290,7 +290,7 @@ namespace Content.Shared.MobState.Components
{
if (!current.HasValue)
{
old?.ExitState(Owner);
old?.ExitState(Owner.Uid, Owner.EntityManager);
return;
}
@@ -300,16 +300,16 @@ namespace Content.Shared.MobState.Components
if (state == old)
{
state.UpdateState(Owner, threshold);
state.UpdateState(Owner.Uid, threshold, Owner.EntityManager);
return;
}
old?.ExitState(Owner);
old?.ExitState(Owner.Uid, Owner.EntityManager);
CurrentState = state;
state.EnterState(Owner);
state.UpdateState(Owner, threshold);
state.EnterState(Owner.Uid, Owner.EntityManager);
state.UpdateState(Owner.Uid, threshold, Owner.EntityManager);
var message = new MobStateChangedMessage(this, old, state);
#pragma warning disable 618