mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
use push_basic_input instead of actions.push
This commit is contained in:
parent
28ebdbbe74
commit
a6b2f04518
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user