Fix emergency flare not igniting through verb menu. (#24027)

Emergency flare ignites when activated through verb menu
This commit is contained in:
Arendian
2024-01-13 17:24:40 +01:00
committed by GitHub
parent e6e402791c
commit 98f0814c2b

View 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;
}