Fix mob state error (#21431)

This commit is contained in:
Leon Friedrich
2023-11-08 12:30:05 +11:00
committed by GitHub
parent 33f211bdf7
commit ac25dd85fc
2 changed files with 7 additions and 0 deletions

View File

@@ -70,6 +70,11 @@ public partial class MobStateSystem
private void OnStateEnteredSubscribers(EntityUid target, MobStateComponent component, MobState state)
{
// All of the state changes here should already be networked, so we do nothing if we are currently applying a
// server state.
if (_timing.ApplyingState)
return;
_blocker.UpdateCanMove(target); //update movement anytime a state changes
switch (state)
{