Fixed crash when opening Poster formspec due to change in font_api.

master
Pierre-Yves Rollo 2018-07-09 13:55:07 +02:00 committed by GitHub
parent a83d494d45
commit 8661a5ca62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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]"..