diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-10-29 13:58:40 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-10-29 13:58:40 -0400 |
commit | 57f68dd202fb740e886410b2aa19defb4d13475f (patch) | |
tree | f3dabc5edf179de9dc6e3b40b377e362ed2d8294 | |
parent | b391e707e1693a27d6047a4f1144e3434984f50a (diff) |
cache moreores modpath, use unique variable to do so
-rw-r--r-- | init.lua | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -8,7 +8,8 @@ if (minetest.get_modpath("intllib")) then S = function ( s ) return s end end -dofile(minetest.get_modpath("moreores").."/_config.txt") +moreores_modpath = minetest.get_modpath("moreores") +dofile(moreores_modpath.."/_config.txt") --[[ **** @@ -361,7 +362,7 @@ minetest.register_node("moreores:copper_rail", { -- mg suppport if minetest.get_modpath("mg") then - dofile(modpath.."/mg.lua") + dofile(moreores_modpath.."/mg.lua") end print(S("[moreores] loaded.")) |