]> git.lizzy.rs Git - crafter_client.git/commitdiff
Fix player being able to intialize running when directly against node
authoroilboi <47129783+oilboi@users.noreply.github.com>
Sun, 12 Apr 2020 22:18:32 +0000 (18:18 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Sun, 12 Apr 2020 22:18:32 +0000 (18:18 -0400)
player_input.lua

index 9851f5bfbecd4122a112b4b878bc98fb2eece776..43bebc478a11aaa314e7c38ab029c5f20cbddb45 100644 (file)
@@ -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