]> git.lizzy.rs Git - crafter_client.git/blobdiff - player_input.lua
Upgrade back to 5.3.0-DEV since collision detection is fixed
[crafter_client.git] / player_input.lua
index 9851f5bfbecd4122a112b4b878bc98fb2eece776..280ca943532631e37e147ce089dbbfbb94bc106a 100644 (file)
@@ -11,6 +11,8 @@ local old_sneak = false
 local bunny_hop = false
 local old_bunny_hop = false
 
+
+
 --attempt to tell the server to allow us to run
 local send_server_movement_state = function(state)
        player_movement_state:send_all(state)
@@ -71,7 +73,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