Fix the health status effect not showing after spawn (#2013)

This commit is contained in:
DrSmugleaf
2020-09-03 20:17:30 +02:00
committed by GitHub
parent 850abc0f0e
commit 5f79d3e31d
2 changed files with 2 additions and 8 deletions

View File

@@ -54,7 +54,7 @@ namespace Content.Client.GameObjects.Components.Mobs.State
}
_currentDamageState = state.DamageState;
CurrentMobState.ExitState(Owner);
CurrentMobState?.ExitState(Owner);
CurrentMobState = Behavior[CurrentDamageState];
CurrentMobState.EnterState(Owner);
}