diff options
author | luk3yx <luk3yx@users.noreply.github.com> | 2023-12-04 08:22:43 +1300 |
---|---|---|
committer | luk3yx <luk3yx@users.noreply.github.com> | 2023-12-04 08:22:43 +1300 |
commit | 7b87099f2ce90dd662e7e2c888e7cf6836b7e2cc (patch) | |
tree | a76034dc49472c0ed6d643d7725a4a7b5d51dbd3 /signs_api | |
parent | 2c00acf2307a4b43c65bf8acc7116638f6a554a1 (diff) | |
download | display_modpack_no_craft-7b87099f2ce90dd662e7e2c888e7cf6836b7e2cc.tar.gz display_modpack_no_craft-7b87099f2ce90dd662e7e2c888e7cf6836b7e2cc.zip |
Bugfix
Diffstat (limited to 'signs_api')
-rw-r--r-- | signs_api/init.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/signs_api/init.lua b/signs_api/init.lua index fd2db03..e5defc3 100644 --- a/signs_api/init.lua +++ b/signs_api/init.lua @@ -28,6 +28,11 @@ local FS = function(...) return minetest.formspec_escape(S(...)) end function signs_api.set_display_text(pos, text, font) local meta = minetest.get_meta(pos) + -- Horrible workaround to prevent the engine from trying to resolve + -- metadata keys + if text:sub(1, 2) == "${" and text:sub(-1) == "}" then + text = text .. " " + end meta:set_string("display_text", text) if text and text ~= "" then meta:set_string("infotext", "\""..text.."\"") |