diff options
Diffstat (limited to 'font_api')
-rw-r--r-- | font_api/init.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/font_api/init.lua b/font_api/init.lua index 27cba99..2c8f4f3 100644 --- a/font_api/init.lua +++ b/font_api/init.lua @@ -42,6 +42,12 @@ function font_api.on_display_update(pos, objref) local text = meta:get_string("display_text") local ndef = minetest.registered_nodes[minetest.get_node(pos).name] local entity = objref:get_luaentity() + + -- If orwell96's modified signs_lib version is available and sign macros are active, + -- replace them in display_lib's text too. + if signs_lib and signs_lib.replace_macros then + text = signs_lib.replace_macros(text) + end if entity and ndef.display_entities[entity.name] then local def = ndef.display_entities[entity.name] |