fix crash if input is other than string (#2)

This commit is contained in:
Thomas Rudin 2018-12-12 21:39:36 +01:00 committed by Pierre-Yves Rollo
parent 0db423d834
commit 2464a74af2

View File

@ -120,6 +120,11 @@ local node_def_defaults = {
if channel ~= minetest.get_meta(pos):get_string("channel") then
return
end
if type(msg) ~= "string" then
return
end
digiterms.push_text_on_screen(pos, msg)
end,
},