mirror of
https://github.com/minetest-mods/moreores.git
synced 2025-06-30 23:20:31 +02:00
Fix issue #2: “Crash with mg mod”, cleanup.
This commit is contained in:
11
init.lua
11
init.lua
@ -3,7 +3,7 @@
|
||||
** More Ores **
|
||||
By Calinou, with the help of Nore.
|
||||
|
||||
Copyright (c) 2011-2014 Calinou and contributors.
|
||||
Copyright (c) 2011-2015 Calinou and contributors.
|
||||
Licensed under the zlib license. See LICENSE.txt for more information.
|
||||
======================================================================
|
||||
--]]
|
||||
@ -19,6 +19,11 @@ local modpath = minetest.get_modpath("moreores")
|
||||
|
||||
dofile(modpath .. "/_config.txt")
|
||||
|
||||
-- `mg` support:
|
||||
if minetest.get_modpath("mg") then
|
||||
dofile(modpath .. "/mg.lua")
|
||||
end
|
||||
|
||||
-- Utility functions
|
||||
-- =================
|
||||
|
||||
@ -354,10 +359,6 @@ minetest.register_node("moreores:copper_rail", {
|
||||
},
|
||||
})
|
||||
|
||||
-- `mg` support:
|
||||
if minetest.get_modpath("mg") then
|
||||
dofile(moreores_modpath.."/mg.lua")
|
||||
end
|
||||
|
||||
if minetest.setting_getbool("log_mods") then
|
||||
minetest.log("action", S("[moreores] loaded."))
|
||||
|
Reference in New Issue
Block a user