diff options
author | Pierre-Yves Rollo <dev@pyrollo.com> | 2018-07-09 13:55:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-09 13:55:07 +0200 |
commit | 8661a5ca622f35284b6631b0a4364e1961dbfaec (patch) | |
tree | c821333225d64d4355023f56cd6ee43155ca0a47 | |
parent | a83d494d45bdb15cd65749bc8ce505a9e7dc1f8a (diff) | |
download | display_modpack-8661a5ca622f35284b6631b0a4364e1961dbfaec.tar.gz display_modpack-8661a5ca622f35284b6631b0a4364e1961dbfaec.tar.bz2 display_modpack-8661a5ca622f35284b6631b0a4364e1961dbfaec.zip |
Fixed crash when opening Poster formspec due to change in font_api.
-rw-r--r-- | signs/nodes.lua | 5 |
1 files changed, 2 insertions, 3 deletions
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]".. |