From 5c820891460fd28166f821e3c17240bc4e6f9c1e Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Fri, 6 Dec 2024 18:50:44 +0100 Subject: [PATCH 1/2] Detector: Ignore unexpected digiline data types --- mesecons_detector/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mesecons_detector/init.lua b/mesecons_detector/init.lua index a8d03001..2653174c 100644 --- a/mesecons_detector/init.lua +++ b/mesecons_detector/init.lua @@ -66,7 +66,8 @@ local object_detector_digiline = { effector = { action = function(pos, _, channel, msg) local meta = minetest.get_meta(pos) - if channel == meta:get_string("digiline_channel") then + if channel == meta:get_string("digiline_channel") and + (type(msg) == "string" or type(msg) == "number") then meta:set_string("scanname", msg) object_detector_make_formspec(pos) end From d547f5fe43eac4ea85cc1df8b54e9aacc14156f4 Mon Sep 17 00:00:00 2001 From: Darin <54958995+Darin755@users.noreply.github.com> Date: Sat, 7 Dec 2024 14:53:20 +0000 Subject: [PATCH 2/2] Added sha256 function to lua controller (#690) --- mesecons_luacontroller/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mesecons_luacontroller/init.lua b/mesecons_luacontroller/init.lua index 90516c03..9e2d3c82 100644 --- a/mesecons_luacontroller/init.lua +++ b/mesecons_luacontroller/init.lua @@ -509,6 +509,7 @@ local function create_environment(pos, mem, event, itbl, send_warning) print = safe_print, interrupt = get_interrupt(pos, itbl, send_warning), digiline_send = get_digiline_send(pos, itbl, send_warning), + sha256sum = minetest.sha256, string = { byte = string.byte, char = string.char,