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,7 +26,8 @@ local function display_poster(pos, node, player)
local formspec
local meta = minetest.get_meta(pos)
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
local titletexture = font:make_text_texture(
meta:get_string("display_text"), 116, 12, 1, "center")