autofly: fix arrive

This commit is contained in:
cora 2020-11-15 17:09:45 +01:00 committed by Schmappie Eldress
parent 2ac62c69b7
commit e57f62a186

View File

@ -240,6 +240,7 @@ function autofly.arrived()
minetest.settings:set_bool("autoeat_timed",false)
core.set_keypress("special1", false)
autofly.set_hud_info("Arrived at destination")
autofly.flying = false
minetest.localplayer:hud_change(hud_info,'text',autofly.last_name .. "\n" .. "Arrived at destination.")
minetest.sound_play({name = "default_dug_metal", gain = 1.0})
end