autofly:optimizin'

This commit is contained in:
cora 2020-11-15 23:39:13 +01:00
parent 77fdb48b95
commit 4d8c3ae36f

View File

@ -248,11 +248,8 @@ function autofly.cruise()
if blck==nil then return end
local nd=minetest.get_node_or_nil(blck)
if not air and nd ~= nil then
minetest.localplayer:set_pos({x=lp.x,y=blck.y+25,z=lp.z} )
minetest.settings:set_bool("free_move",true)
else
minetest.settings:set_bool("free_move",false)
end
end