mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +01:00
Not using sneak as fast anymore..
- Fixing a little mistake in my earlier commit
This commit is contained in:
parent
e5e9c74392
commit
947b5eb780
@ -26,7 +26,7 @@ minetest.register_globalstep(function(dtime)
|
|||||||
local player = minetest.get_player_by_name(playerName)
|
local player = minetest.get_player_by_name(playerName)
|
||||||
if player ~= nil then
|
if player ~= nil then
|
||||||
--Check if they are moving or not
|
--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
|
-- 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
|
if player:get_player_control()["RMB"] or player:get_player_control()["LMB"] and STOP_ON_CLICK == true then
|
||||||
players[playerName]["state"] = 0
|
players[playerName]["state"] = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user