autfly: add wp-gui menu entry

This commit is contained in:
flyc0r 2020-10-06 12:42:27 +02:00
parent e5f220693a
commit be40b3da54

View File

@ -426,6 +426,7 @@ register_chatcommand_alias('clear_waypoint', 'cwp','cls')
if (_G["minetest"]["register_cheat"] ~= nil) then
minetest.register_cheat("AutoAim", "Autofly", "afly_autoaim")
minetest.register_cheat("SoftLanding", "Autofly", "afly_softlanding")
minetest.register_cheat("Display GUI", "Autofly", autofly.display_formspec)
else
minetest.settings:set_bool("afly_autoaim",false)
minetest.settings:set_bool("afly_softlanding",true)