1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 01:30:38 +01:00

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

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