Not using sneak as fast anymore..

- Fixing a little mistake in my earlier commit
This commit is contained in:
LeMagnesium 2014-11-14 00:03:08 +01:00
parent e5e9c74392
commit 947b5eb780
1 changed files with 1 additions and 1 deletions

View File

@ -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