status command changed to state
This commit is contained in:
parent
27fa1ee26e
commit
8ba2eae70e
@ -156,14 +156,14 @@ minetest.register_node("techage:ta5_flycontroller", {
|
|||||||
sounds = default.node_sound_wood_defaults(),
|
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"}, {
|
techage.register_node({"techage:ta5_flycontroller"}, {
|
||||||
on_recv_message = function(pos, src, topic, payload)
|
on_recv_message = function(pos, src, topic, payload)
|
||||||
local nvm = techage.get_nvm(pos)
|
local nvm = techage.get_nvm(pos)
|
||||||
if topic == "info" then
|
if topic == "info" then
|
||||||
return INFO
|
return INFO
|
||||||
elseif topic == "status" then
|
elseif topic == "state" then
|
||||||
return nvm.running and "running" or "stopped"
|
return nvm.running and "running" or "stopped"
|
||||||
elseif topic == "a2b" then
|
elseif topic == "a2b" then
|
||||||
nvm.moveBA = true
|
nvm.moveBA = true
|
||||||
|
Loading…
Reference in New Issue
Block a user