From 063775de6f931dc0366be35284eef38bea99d33f Mon Sep 17 00:00:00 2001 From: Vigers Ray Date: Tue, 7 Jan 2025 03:05:01 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BB=D0=B0=D0=B4=D0=BD=D0=BE=20=D1=80=D0=B0?= =?UTF-8?q?=D0=B9=D0=B4=D0=B5=D1=80,=20=D1=82=D0=BE=D0=BB=D1=8C=D0=BA?= =?UTF-8?q?=D0=BE=20=D0=BD=D0=B5=20=D1=80=D1=83=D0=B3=D0=B0=D0=B9=D1=81?= =?UTF-8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../_Sunrise/CryoTeleport/CryoTeleportSystem.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Content.Server/_Sunrise/CryoTeleport/CryoTeleportSystem.cs b/Content.Server/_Sunrise/CryoTeleport/CryoTeleportSystem.cs index 9d6f09f7be..d67ef16d97 100644 --- a/Content.Server/_Sunrise/CryoTeleport/CryoTeleportSystem.cs +++ b/Content.Server/_Sunrise/CryoTeleport/CryoTeleportSystem.cs @@ -33,8 +33,8 @@ public sealed class CryoTeleportationSystem : EntitySystem private bool _enable; private TimeSpan _transferDelay; - public TimeSpan NextTick = TimeSpan.Zero; - public TimeSpan RefreshCooldown = TimeSpan.FromSeconds(5); + private TimeSpan _nextTick = TimeSpan.Zero; + private readonly TimeSpan _refreshCooldown = TimeSpan.FromSeconds(5); public override void Initialize() { @@ -59,10 +59,10 @@ public sealed class CryoTeleportationSystem : EntitySystem public override void Update(float delay) { - if (NextTick > _timing.CurTime) + if (_nextTick > _timing.CurTime) return; - NextTick += RefreshCooldown; + _nextTick += _refreshCooldown; if (!_enable) return;