controller bugfixes
This commit is contained in:
parent
a9d4d91bb6
commit
82c5b06009
@ -503,7 +503,7 @@ techage.register_node({"techage:ta4_icta_controller"}, {
|
||||
set_input(pos, number, src, topic)
|
||||
elseif topic == "state" then
|
||||
local state = meta:get_int("state")
|
||||
return techage.statestring(state)
|
||||
return techage.StateStrings(state)
|
||||
else
|
||||
return "unsupported"
|
||||
end
|
||||
|
@ -621,7 +621,7 @@ techage.register_node({"techage:ta4_lua_controller"}, {
|
||||
set_input(pos, number, "msg", payload)
|
||||
elseif topic == "state" then
|
||||
local running = meta:get_int("running") or STATE_STOPPED
|
||||
return techage.statestring(running)
|
||||
return techage.StateStrings(running)
|
||||
else
|
||||
return "unsupported"
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user