diff options
author | root <root@linuxworks.belug.de> | 2018-01-11 22:03:10 +0100 |
---|---|---|
committer | root <root@linuxworks.belug.de> | 2018-01-11 22:03:10 +0100 |
commit | 7ec1ff1908f79904b001acfae9e35b45e15a6bf0 (patch) | |
tree | 251ec63fd01d937f23fe6f4ed12ff6da8a4bfc07 | |
parent | 43b7ce7fec111a8d9424c5def4ebe965a36eab31 (diff) | |
parent | 360cbf4b976b63b6fad82858c8bb4446adf0e661 (diff) |
-rw-r--r-- | init.lua | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -15,9 +15,8 @@ local enable_colored_metal_signs = true -- CWz's keyword interact mod uses this setting. local current_keyword = minetest.settings:get("interact_keyword") or "iaccept" -local replace_macros = dofile(minetest.get_modpath(minetest.get_current_modname())..DIR_DELIM.."macro.lua") - signs_lib = {} +signs_lib.replace_macros = dofile(minetest.get_modpath(minetest.get_current_modname())..DIR_DELIM.."macro.lua") screwdriver = screwdriver or {} signs_lib.wallmounted_rotate = function(pos, node, user, mode, new_param2) @@ -305,7 +304,7 @@ end local function split_lines_and_words(text) if not text then return end text = string.gsub(text, "@KEYWORD", current_keyword) - text = replace_macros(text) + text = signs_lib.replace_macros(text) local lines = { } for _, line in ipairs(text:split("\n")) do table.insert(lines, line:split(" ")) |