From a6b2f04518edaa089241034d60acdfb692a7f6c2 Mon Sep 17 00:00:00 2001 From: Isse Date: Sat, 14 Jan 2023 23:43:15 +0100 Subject: [PATCH] use push_basic_input instead of actions.push --- server/agent/src/attack.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/agent/src/attack.rs b/server/agent/src/attack.rs index 9d5151edb6..031e134609 100644 --- a/server/agent/src/attack.rs +++ b/server/agent/src/attack.rs @@ -2313,9 +2313,7 @@ impl<'a> AgentData<'a> { { agent.action_state.timers[ActionStateTimers::TimerOrganAura as usize] = 0.0; } else if agent.action_state.timers[ActionStateTimers::TimerOrganAura as usize] < 1.0 { - controller - .actions - .push(ControlAction::basic_input(InputKind::Primary)); + controller.push_basic_input(InputKind::Primary); agent.action_state.timers[ActionStateTimers::TimerOrganAura as usize] += read_data.dt.0; } else {