Fix potential crash in sign ABM

master
Wuzzy 2019-09-01 12:21:50 +02:00
parent d0302cc14f
commit cad0e31f07
1 changed files with 3 additions and 0 deletions

View File

@ -118,6 +118,9 @@ minetest.register_abm( {
local meta = minetest.get_meta(pos)
local id = meta:get_string("id")
local caption = tutorial.captions[id]
if id == "" then
return
end
local formspec = ""..
"size[12,6]"..
"label[-0.15,-0.4;"..minetest.formspec_escape(S(caption)).."]"..