]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix emergency flare not igniting through verb menu. (#24027)
authorArendian <137322659+Arendian@users.noreply.github.com>
Sat, 13 Jan 2024 16:24:40 +0000 (17:24 +0100)
committerGitHub <noreply@github.com>
Sat, 13 Jan 2024 16:24:40 +0000 (09:24 -0700)
Emergency flare ignites when activated through verb menu

Content.Server/Light/EntitySystems/ExpendableLightSystem.cs

index 0bbdf88d3c9a0ae7d365a7ad605f0b5526eb9e03..571c23c5dbd613525d52c9e573eeac454662e00d 100644 (file)
@@ -99,6 +99,9 @@ namespace Content.Server.Light.EntitySystems
                     _item.SetHeldPrefix(ent, "lit", component: item);
                 }
 
+                var isHotEvent = new IsHotEvent() {IsHot = true};
+                RaiseLocalEvent(ent, isHotEvent);
+
                 component.CurrentState = ExpendableLightState.Lit;
                 component.StateExpiryTime = component.GlowDuration;
 
@@ -175,8 +178,6 @@ namespace Content.Server.Light.EntitySystems
             if (args.Handled)
                 return;
 
-            var isHotEvent = new IsHotEvent() {IsHot = true};
-            RaiseLocalEvent(ent, isHotEvent);
             if (TryActivate(ent))
                 args.Handled = true;
         }