Fiy beduino command bug
This commit is contained in:
parent
3a593ff56f
commit
998689aafd
@ -395,8 +395,8 @@ local function change_filter_settings(pos, slot, val)
|
|||||||
local hash = minetest.hash_node_position(pos)
|
local hash = minetest.hash_node_position(pos)
|
||||||
FilterCache[hash] = nil
|
FilterCache[hash] = nil
|
||||||
|
|
||||||
-- local nvm = techage.get_nvm(pos)
|
local nvm = techage.get_nvm(pos)
|
||||||
-- meta:set_string("formspec", formspec(CRD(pos).State, pos, nvm))
|
meta:set_string("formspec", formspec(CRD(pos).State, pos, nvm))
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -528,7 +528,7 @@ local tubing = {
|
|||||||
end,
|
end,
|
||||||
on_beduino_receive_cmnd = function(pos, src, topic, payload)
|
on_beduino_receive_cmnd = function(pos, src, topic, payload)
|
||||||
if topic == 4 then
|
if topic == 4 then
|
||||||
local slot = SlotNumbers[payload[1]]
|
local slot = SlotColors[payload[1]]
|
||||||
local state = payload[2] == 1 and "on" or "off"
|
local state = payload[2] == 1 and "on" or "off"
|
||||||
change_filter_settings(pos, slot, state)
|
change_filter_settings(pos, slot, state)
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user