forked from mtcontrib/digiterms
fix crash if input is other than string (#2)
This commit is contained in:
parent
0db423d834
commit
2464a74af2
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user