mirror of
https://github.com/pyrollo/display_modpack.git
synced 2024-11-30 18:13:43 +01:00
Fixed crash when opening Poster formspec due to change in font_api.
This commit is contained in:
parent
a83d494d45
commit
8661a5ca62
@ -28,9 +28,8 @@ local function display_poster(pos, node, player)
|
|||||||
local def = minetest.registered_nodes[node.name].display_entities["signs:display_text"]
|
local def = minetest.registered_nodes[node.name].display_entities["signs:display_text"]
|
||||||
|
|
||||||
-- Title texture
|
-- Title texture
|
||||||
local titletexture = font_api.make_multiline_texture(
|
local titletexture = font:make_text_texture(
|
||||||
def.font_name, meta:get_string("display_text"),
|
meta:get_string("display_text"), 116, 12, 1, "center")
|
||||||
116, 12, def.maxlines, def.valign, def.color)
|
|
||||||
|
|
||||||
formspec =
|
formspec =
|
||||||
"size[7,9]"..
|
"size[7,9]"..
|
||||||
|
Loading…
Reference in New Issue
Block a user