fix crash if input is other than string

This commit is contained in:
Thomas Rudin 2018-12-12 20:08:31 +01:00
parent 0db423d834
commit 616a41a49f
1 changed files with 5 additions and 0 deletions

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,
},