Detector: Ignore unexpected digiline data types
This commit is contained in:
parent
31b56063a0
commit
5c82089146
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user