From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Mon, 14 Oct 2024 07:06:18 +0000 (+1100) Subject: Fix tech anomaly nexttimer (#32805) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=573f490896fdb5ea3cc219cd106c33eb7c2e2f0e;p=space-station-14.git Fix tech anomaly nexttimer (#32805) --- diff --git a/Content.Server/Anomaly/Effects/TechAnomalySystem.cs b/Content.Server/Anomaly/Effects/TechAnomalySystem.cs index 3e4d101f4f..9f81c64dbc 100644 --- a/Content.Server/Anomaly/Effects/TechAnomalySystem.cs +++ b/Content.Server/Anomaly/Effects/TechAnomalySystem.cs @@ -22,11 +22,17 @@ public sealed class TechAnomalySystem : EntitySystem { base.Initialize(); + SubscribeLocalEvent(OnTechMapInit); SubscribeLocalEvent(OnPulse); SubscribeLocalEvent(OnSupercritical); SubscribeLocalEvent(OnStabilityChanged); } + private void OnTechMapInit(Entity ent, ref MapInitEvent args) + { + ent.Comp.NextTimer = _timing.CurTime; + } + public override void Update(float frameTime) { base.Update(frameTime);