From c1f8e37b1e0af3df6109f75979f800cdeb3ca26d Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 21 Feb 2017 15:12:31 +0100 Subject: [PATCH] Remove old broken sprint mod --- mods/PLAYER/sprint/init.lua | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 mods/PLAYER/sprint/init.lua diff --git a/mods/PLAYER/sprint/init.lua b/mods/PLAYER/sprint/init.lua deleted file mode 100644 index 86e5e938f3..0000000000 --- a/mods/PLAYER/sprint/init.lua +++ /dev/null @@ -1,29 +0,0 @@ -local player_running_physics = {} -minetest.register_globalstep(function(dtime) - for _,player in ipairs(minetest.get_connected_players()) do - --local pos = player:getpos() - --print(dump(player:get_player_control().up)) - if player:get_player_control().up == true and player_running_physics[player:get_player_name()] == nil then - minetest.after(0.05, function() - if player:get_player_control().up == false then - minetest.after(0.05, function() - if player:get_player_control().up == true then - player:set_physics_override(1.5, 1, 1) - player_running_physics[player:get_player_name()] = true - --print("test1") - end - end) - end - end) - elseif player:get_player_control().up == false and player_running_physics[player:get_player_name()] == true then - --minetest.after(0.2, function() - if player:get_player_control().up == false then - player_running_physics[player:get_player_name()] = nil - player:set_physics_override(1, 1, 1) - --print("test2") - end - --end) - end - - end -end)