Fix MovespeedModifierMetabolism state handling (#15084)
This commit is contained in:
@@ -2,11 +2,15 @@ using Content.Shared.Inventory;
|
||||
using Content.Shared.Movement.Components;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Serialization;
|
||||
using Robust.Shared.Timing;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Shared.Movement.Systems
|
||||
{
|
||||
public sealed class MovementSpeedModifierSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly IGameTiming _timing = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
@@ -39,6 +43,9 @@ namespace Content.Shared.Movement.Systems
|
||||
if (!Resolve(uid, ref move, false))
|
||||
return;
|
||||
|
||||
if (_timing.ApplyingState)
|
||||
return;
|
||||
|
||||
var ev = new RefreshMovementSpeedModifiersEvent();
|
||||
RaiseLocalEvent(uid, ev);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user