Fix actions not being usable, ordering, and containers (#19964)
This commit is contained in:
@@ -17,12 +17,12 @@ public abstract class SharedCombatModeSystem : EntitySystem
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
SubscribeLocalEvent<CombatModeComponent, MapInitEvent>(OnStartup);
|
||||
SubscribeLocalEvent<CombatModeComponent, MapInitEvent>(OnMapInit);
|
||||
SubscribeLocalEvent<CombatModeComponent, ComponentShutdown>(OnShutdown);
|
||||
SubscribeLocalEvent<CombatModeComponent, ToggleCombatActionEvent>(OnActionPerform);
|
||||
}
|
||||
|
||||
private void OnStartup(EntityUid uid, CombatModeComponent component, MapInitEvent args)
|
||||
private void OnMapInit(EntityUid uid, CombatModeComponent component, MapInitEvent args)
|
||||
{
|
||||
_actionsSystem.AddAction(uid, ref component.CombatToggleActionEntity, component.CombatToggleAction);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user