From 5c820891460fd28166f821e3c17240bc4e6f9c1e Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Fri, 6 Dec 2024 18:50:44 +0100 Subject: [PATCH] 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 a8d0300..2653174 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