speed: fix crash
This commit is contained in:
parent
d37b416495
commit
2cda3ac31f
@ -1,5 +1,5 @@
|
|||||||
minetest.register_globalstep(function()
|
minetest.register_globalstep(function()
|
||||||
if minetest.settings:get_bool("movement_ignore_server_speed") then
|
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_override_speed(minetest.settings:get('movement_speed_walk'))
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user