Fix emergency flare not igniting through verb menu. (#24027)
Emergency flare ignites when activated through verb menu
This commit is contained in:
@@ -99,6 +99,9 @@ namespace Content.Server.Light.EntitySystems
|
|||||||
_item.SetHeldPrefix(ent, "lit", component: item);
|
_item.SetHeldPrefix(ent, "lit", component: item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var isHotEvent = new IsHotEvent() {IsHot = true};
|
||||||
|
RaiseLocalEvent(ent, isHotEvent);
|
||||||
|
|
||||||
component.CurrentState = ExpendableLightState.Lit;
|
component.CurrentState = ExpendableLightState.Lit;
|
||||||
component.StateExpiryTime = component.GlowDuration;
|
component.StateExpiryTime = component.GlowDuration;
|
||||||
|
|
||||||
@@ -175,8 +178,6 @@ namespace Content.Server.Light.EntitySystems
|
|||||||
if (args.Handled)
|
if (args.Handled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var isHotEvent = new IsHotEvent() {IsHot = true};
|
|
||||||
RaiseLocalEvent(ent, isHotEvent);
|
|
||||||
if (TryActivate(ent))
|
if (TryActivate(ent))
|
||||||
args.Handled = true;
|
args.Handled = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user