speed: change csm to reflect the api change
This commit is contained in:
parent
8a237b4f1b
commit
ddb96e465c
@ -1,7 +1,12 @@
|
||||
local wason=false;
|
||||
minetest.register_globalstep(function()
|
||||
if minetest.localplayer and minetest.settings:get_bool("movement_ignore_server_speed") then
|
||||
minetest.localplayer:set_override_speed(minetest.settings:get('movement_speed_walk'))
|
||||
minetest.localplayer:set_speeds_from_local_settings()
|
||||
wason=true
|
||||
elseif wason then
|
||||
wason=false
|
||||
minetest.localplayer:set_speeds_from_server_settings()
|
||||
end
|
||||
end)
|
||||
|
||||
minetest.register_cheat("IgnoreServerSpeed", "Movement", "movement_ignore_server_speed")
|
||||
minetest.register_cheat("IgnSrvSpd", "Movement", "movement_ignore_server_speed")
|
||||
|
Loading…
x
Reference in New Issue
Block a user