status command changed to state

This commit is contained in:
Joachim Stolberg 2021-11-17 18:55:42 +01:00
parent 27fa1ee26e
commit 8ba2eae70e

View File

@ -156,14 +156,14 @@ minetest.register_node("techage:ta5_flycontroller", {
sounds = default.node_sound_wood_defaults(),
})
local INFO = [[Commands: 'status', 'a2b', 'b2a', 'move']]
local INFO = [[Commands: 'state', 'a2b', 'b2a', 'move']]
techage.register_node({"techage:ta5_flycontroller"}, {
on_recv_message = function(pos, src, topic, payload)
local nvm = techage.get_nvm(pos)
if topic == "info" then
return INFO
elseif topic == "status" then
elseif topic == "state" then
return nvm.running and "running" or "stopped"
elseif topic == "a2b" then
nvm.moveBA = true