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

Emergency flare ignites when activated through verb menu

(cherry picked from commit 98f0814c2b267cc3f38bf3fbbd861bf86e460321)
This commit is contained in:
Arendian 2024-01-13 17:24:40 +01:00 committed by Debug
parent 61b6acea9f
commit 57b4a41d60
No known key found for this signature in database
GPG Key ID: 271270A74EF9C350
1 changed files with 3 additions and 2 deletions

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