From 8661a5ca622f35284b6631b0a4364e1961dbfaec Mon Sep 17 00:00:00 2001 From: Pierre-Yves Rollo Date: Mon, 9 Jul 2018 13:55:07 +0200 Subject: Fixed crash when opening Poster formspec due to change in font_api. --- signs/nodes.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'signs') diff --git a/signs/nodes.lua b/signs/nodes.lua index 18bf1d6..bad9811 100644 --- a/signs/nodes.lua +++ b/signs/nodes.lua @@ -28,9 +28,8 @@ local function display_poster(pos, node, player) local def = minetest.registered_nodes[node.name].display_entities["signs:display_text"] -- Title texture - local titletexture = font_api.make_multiline_texture( - def.font_name, meta:get_string("display_text"), - 116, 12, def.maxlines, def.valign, def.color) + local titletexture = font:make_text_texture( + meta:get_string("display_text"), 116, 12, 1, "center") formspec = "size[7,9]".. -- cgit v1.2.3