Fix issue #2: “Crash with mg mod”, cleanup.

This commit is contained in:
Calinou
2015-01-06 20:35:38 +01:00
parent 806c3a7ff3
commit b9c8011b53
4 changed files with 19 additions and 29 deletions

View File

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