cache moreores modpath, use unique variable to do so

This commit is contained in:
Vanessa Ezekowitz 2013-10-29 13:58:40 -04:00
parent b391e707e1
commit 57f68dd202
1 changed files with 3 additions and 2 deletions

View File

@ -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."))