aboutsummaryrefslogtreecommitdiff
path: root/signs/nodes.lua
diff options
context:
space:
mode:
Diffstat (limited to 'signs/nodes.lua')
-rw-r--r--signs/nodes.lua5
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]"..