diff options
author | orwell96 <orwell@bleipb.de> | 2018-01-11 22:18:12 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2018-01-11 22:29:15 +0100 |
commit | eccdad46ef2b38cd061aab7ae6bcb252a67c2218 (patch) | |
tree | 2e8cd191e6a712559eb6bfc69088d1de581f4120 /font_lib | |
parent | 0fa101e1c0b5e585f23bb9cfa531bfc851de5e0b (diff) | |
download | display_modpack-eccdad46ef2b38cd061aab7ae6bcb252a67c2218.tar.gz display_modpack-eccdad46ef2b38cd061aab7ae6bcb252a67c2218.tar.bz2 display_modpack-eccdad46ef2b38cd061aab7ae6bcb252a67c2218.zip |
Use signs_lib's sign macros
Diffstat (limited to 'font_lib')
-rw-r--r-- | font_lib/init.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/font_lib/init.lua b/font_lib/init.lua index 9b10e76..ea0c056 100644 --- a/font_lib/init.lua +++ b/font_lib/init.lua @@ -259,7 +259,13 @@ function font_lib.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] |