summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorCalinou <calinou@opmbx.org>2015-01-06 20:35:38 +0100
committerCalinou <calinou@opmbx.org>2015-01-06 20:35:38 +0100
commitb9c8011b53db3ba54f0759f49b1633d228d21a5b (patch)
tree95d1ca6a22efbfff38c4dd1d533c84090a4a5bf1 /init.lua
parent806c3a7ff3460fc688c081acc41da88bc7bc7177 (diff)
Fix issue #2: “Crash with mg mod”, cleanup.
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/init.lua b/init.lua
index e998f2a..0622405 100644
--- a/init.lua
+++ b/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."))