From 947b5eb780ce1abf6d6a8987d2642bfb9f2b2940 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Fri, 14 Nov 2014 00:03:08 +0100 Subject: [PATCH] Not using sneak as fast anymore.. - Fixing a little mistake in my earlier commit --- mods/sprint/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/sprint/init.lua b/mods/sprint/init.lua index 59cdd394..d69c055d 100644 --- a/mods/sprint/init.lua +++ b/mods/sprint/init.lua @@ -26,7 +26,7 @@ minetest.register_globalstep(function(dtime) local player = minetest.get_player_by_name(playerName) if player ~= nil then --Check if they are moving or not - players[playerName]["moving"] = player:get_player_control()["sneak"] + players[playerName]["moving"] = player:get_player_control()["up"] -- s'arrete si le joueur fait un clique gauche ou droit if player:get_player_control()["RMB"] or player:get_player_control()["LMB"] and STOP_ON_CLICK == true then players[playerName]["state"] = 0