mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-06-28 13:56:02 +02:00
Detector: Ignore unexpected digiline data types
This commit is contained in:
@ -66,7 +66,8 @@ local object_detector_digiline = {
|
|||||||
effector = {
|
effector = {
|
||||||
action = function(pos, _, channel, msg)
|
action = function(pos, _, channel, msg)
|
||||||
local meta = minetest.get_meta(pos)
|
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)
|
meta:set_string("scanname", msg)
|
||||||
object_detector_make_formspec(pos)
|
object_detector_make_formspec(pos)
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user