Fix Poster crash (amend)

This commit is contained in:
Pierre-Yves Rollo 2018-07-09 14:04:51 +02:00 committed by GitHub
parent 8661a5ca62
commit e51afb851c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -26,6 +26,7 @@ local function display_poster(pos, node, player)
local formspec local formspec
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
local def = minetest.registered_nodes[node.name].display_entities["signs:display_text"] local def = minetest.registered_nodes[node.name].display_entities["signs:display_text"]
local font = font_api.get_font(meta:get_string("font") or def.font_name)
-- Title texture -- Title texture
local titletexture = font:make_text_texture( local titletexture = font:make_text_texture(