Detector: Ignore unexpected digiline data types

This commit is contained in:
SmallJoker 2024-12-06 18:50:44 +01:00
parent 31b56063a0
commit 5c82089146

View File

@ -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