mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-22 16:10:18 +01:00
only try to process a light message if it's a string
This commit is contained in:
parent
0c9d883f28
commit
e84a184946
@ -103,7 +103,7 @@ if minetest.get_modpath("digilines") then
|
|||||||
local setchan = meta:get_string("channel")
|
local setchan = meta:get_string("channel")
|
||||||
if setchan ~= channel then return end
|
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 n = tonumber(msg)
|
||||||
local suff = word_to_bright[msg] or "invalid"
|
local suff = word_to_bright[msg] or "invalid"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user