From e84a184946021f24219e7fa9366a21ff387cd39c Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Thu, 19 Sep 2019 19:24:42 -0400 Subject: [PATCH] only try to process a light message if it's a string --- homedecor_lighting/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homedecor_lighting/init.lua b/homedecor_lighting/init.lua index 157ddab..7c7fedb 100644 --- a/homedecor_lighting/init.lua +++ b/homedecor_lighting/init.lua @@ -103,7 +103,7 @@ if minetest.get_modpath("digilines") then local setchan = meta:get_string("channel") if setchan ~= channel then return end - if msg and msg ~= "" then + if msg and msg ~= "" and type(msg) == "string" then local n = tonumber(msg) local suff = word_to_bright[msg] or "invalid"