From 713f3675ab656404b4028f05a9c529583a62ac43 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Sun, 4 Sep 2022 20:05:18 +0200 Subject: [PATCH] Fix move command bug in move controller --- move_controller/movecontroller.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/move_controller/movecontroller.lua b/move_controller/movecontroller.lua index db81636..bdd50ac 100644 --- a/move_controller/movecontroller.lua +++ b/move_controller/movecontroller.lua @@ -235,7 +235,7 @@ techage.register_node({"techage:ta4_movecontroller"}, { nvm.moveBA = false nvm.running = true return fly.move_to_other_pos(pos, true) - elseif move_xyz and topic == "move" then + elseif not move_xyz and topic == "move" then nvm.moveBA = nvm.moveBA == false nvm.running = true return fly.move_to_other_pos(pos, nvm.moveBA == false)