Хотфикс (#242)

* hotfix

* fix
This commit is contained in:
CaypenNow
2024-03-24 18:03:56 +05:00
committed by GitHub
parent 5f01622a07
commit d177127b99
3 changed files with 16 additions and 20 deletions

View File

@@ -1,3 +1,4 @@
using System.Threading;
using Robust.Shared.GameStates;
namespace Content.Shared.Chemistry.Components
@@ -6,6 +7,9 @@ namespace Content.Shared.Chemistry.Components
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class MovespeedModifierMetabolismComponent : Component
{
[ViewVariables, DataField]
public CancellationTokenSource CancelTokenSource = new();
[AutoNetworkedField, ViewVariables]
public float WalkSpeedModifier { get; set; }
@@ -15,7 +19,7 @@ namespace Content.Shared.Chemistry.Components
/// <summary>
/// When the current modifier is expected to end.
/// </summary>
[AutoNetworkedField, ViewVariables]
[AutoNetworkedField, ViewVariables] // WD EDIT
public TimeSpan ModifierTimer { get; set; } = TimeSpan.Zero;
}
}