speed: fix crash

This commit is contained in:
cora 2020-11-13 11:24:23 +01:00 committed by Schmappie Eldress
parent d37b416495
commit 2cda3ac31f

View File

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