mirror of
https://github.com/minetest-mods/moreores.git
synced 2024-12-29 11:40:21 +01:00
cache moreores modpath, use unique variable to do so
This commit is contained in:
parent
b391e707e1
commit
57f68dd202
5
init.lua
5
init.lua
@ -8,7 +8,8 @@ if (minetest.get_modpath("intllib")) then
|
|||||||
S = function ( s ) return s end
|
S = function ( s ) return s end
|
||||||
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
|
-- mg suppport
|
||||||
if minetest.get_modpath("mg") then
|
if minetest.get_modpath("mg") then
|
||||||
dofile(modpath.."/mg.lua")
|
dofile(moreores_modpath.."/mg.lua")
|
||||||
end
|
end
|
||||||
|
|
||||||
print(S("[moreores] loaded."))
|
print(S("[moreores] loaded."))
|
||||||
|
Loading…
Reference in New Issue
Block a user