From: oilboi <47129783+oilboi@users.noreply.github.com> Date: Sun, 12 Apr 2020 22:18:32 +0000 (-0400) Subject: Fix player being able to intialize running when directly against node X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=638d2746992d09b2171885a0f139efe84a7bef1d;p=crafter_client.git Fix player being able to intialize running when directly against node --- diff --git a/player_input.lua b/player_input.lua index 9851f5b..43bebc4 100644 --- a/player_input.lua +++ b/player_input.lua @@ -71,7 +71,7 @@ minetest.register_globalstep(function(dtime) run_discharge_timer = 0 end --initialize double tap run - if old_up == false and input.up == true then + if old_up == false and input.up == true and vel.x ~= 0 and vel.z ~= 0 then run_discharge_timer = 0 running = true state = 1