fix the 'fix'

master
Vanessa Dannenberg 2019-09-19 20:55:55 -04:00
parent 85604e2a7c
commit 51a462584e
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ if minetest.get_modpath("digilines") then
local setchan = meta:get_string("channel")
if setchan ~= channel then return end
if msg and msg ~= "" and type(msg) == "string" then
if msg ~= "" and (type(msg) == "string" or type(msg) == "number" ) then
local n = tonumber(msg)
if n then
msg = (n > 3) and "on" or "off" -- same threshold as in homedecor's lights