Fix move command bug in move controller

This commit is contained in:
Joachim Stolberg 2022-09-04 20:05:18 +02:00
parent 69aac18dc5
commit 713f3675ab

View File

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