1
0
mirror of https://github.com/minetest-mods/mesecons.git synced 2025-04-21 03:00:27 +02:00

Permit number type for 'distance' in digiline message again

fixes #680
This commit is contained in:
sfan5 2024-08-15 15:10:14 +02:00
parent d52eac5a4a
commit fe57adec26

@ -223,7 +223,7 @@ local node_detector_digiline = {
if type(msg) == "table" then if type(msg) == "table" then
if msg.distance or msg.scanname then if msg.distance or msg.scanname then
if type(msg.distance) == "string" then if type(msg.distance) == "number" or type(msg.distance) == "string" then
meta:set_string("distance", msg.distance) meta:set_string("distance", msg.distance)
end end
if type(msg.scanname) == "string" then if type(msg.scanname) == "string" then