diff options
author | Pierre-Yves Rollo <dev@pyrollo.com> | 2018-07-09 14:04:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-09 14:04:51 +0200 |
commit | e51afb851c996ad60d59b2c1f3e608b0d9b50864 (patch) | |
tree | ec3cc81f6cbc812b7dbdbfa6bbda999c3c145e3c | |
parent | 8661a5ca622f35284b6631b0a4364e1961dbfaec (diff) | |
download | display_modpack-e51afb851c996ad60d59b2c1f3e608b0d9b50864.tar.gz display_modpack-e51afb851c996ad60d59b2c1f3e608b0d9b50864.tar.bz2 display_modpack-e51afb851c996ad60d59b2c1f3e608b0d9b50864.zip |
Fix Poster crash (amend)
-rw-r--r-- | signs/nodes.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/signs/nodes.lua b/signs/nodes.lua index bad9811..d635f8f 100644 --- a/signs/nodes.lua +++ b/signs/nodes.lua @@ -26,7 +26,8 @@ local function display_poster(pos, node, player) local formspec local meta = minetest.get_meta(pos) local def = minetest.registered_nodes[node.name].display_entities["signs:display_text"] - + local font = font_api.get_font(meta:get_string("font") or def.font_name) + -- Title texture local titletexture = font:make_text_texture( meta:get_string("display_text"), 116, 12, 1, "center") |