From 998689aafde37827826d63e000c0f1b7e42618a4 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Tue, 21 Jun 2022 20:21:16 +0200 Subject: [PATCH] Fiy beduino command bug --- basic_machines/distributor.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/basic_machines/distributor.lua b/basic_machines/distributor.lua index 741d89e..66dd51c 100644 --- a/basic_machines/distributor.lua +++ b/basic_machines/distributor.lua @@ -395,8 +395,8 @@ local function change_filter_settings(pos, slot, val) local hash = minetest.hash_node_position(pos) FilterCache[hash] = nil --- local nvm = techage.get_nvm(pos) --- meta:set_string("formspec", formspec(CRD(pos).State, pos, nvm)) + local nvm = techage.get_nvm(pos) + meta:set_string("formspec", formspec(CRD(pos).State, pos, nvm)) return true end @@ -528,7 +528,7 @@ local tubing = { end, on_beduino_receive_cmnd = function(pos, src, topic, payload) if topic == 4 then - local slot = SlotNumbers[payload[1]] + local slot = SlotColors[payload[1]] local state = payload[2] == 1 and "on" or "off" change_filter_settings(pos, slot, state) return 0