summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-10-29 13:58:40 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-10-29 13:58:40 -0400
commit57f68dd202fb740e886410b2aa19defb4d13475f (patch)
treef3dabc5edf179de9dc6e3b40b377e362ed2d8294
parentb391e707e1693a27d6047a4f1144e3434984f50a (diff)
cache moreores modpath, use unique variable to do so
-rw-r--r--init.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index be7386d..32fb5ef 100644
--- a/init.lua
+++ b/init.lua
@@ -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."))