Skip to content

Commit

Permalink
Detector: Ignore unexpected digiline data types
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallJoker committed Dec 6, 2024
1 parent 31b5606 commit 5c82089
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mesecons_detector/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5c82089

Please sign in to comment.