fix borgs not being able to toggle flashlight (#20448)
This commit is contained in:
@@ -99,11 +99,13 @@ namespace Content.Server.Light.EntitySystems
|
||||
private void OnMapInit(EntityUid uid, HandheldLightComponent component, MapInitEvent args)
|
||||
{
|
||||
_actionContainer.EnsureAction(uid, ref component.ToggleActionEntity, component.ToggleAction);
|
||||
_actions.AddAction(uid, ref component.SelfToggleActionEntity, component.ToggleAction);
|
||||
}
|
||||
|
||||
private void OnShutdown(EntityUid uid, HandheldLightComponent component, ComponentShutdown args)
|
||||
{
|
||||
_actions.RemoveAction(uid, component.ToggleActionEntity);
|
||||
_actions.RemoveAction(uid, component.SelfToggleActionEntity);
|
||||
}
|
||||
|
||||
private byte? GetLevel(EntityUid uid, HandheldLightComponent component)
|
||||
|
||||
Reference in New Issue
Block a user