From b9c8011b53db3ba54f0759f49b1633d228d21a5b Mon Sep 17 00:00:00 2001 From: Calinou Date: Tue, 6 Jan 2015 20:35:38 +0100 Subject: =?UTF-8?q?Fix=20issue=20#2:=20=E2=80=9CCrash=20with=20mg=20mod?= =?UTF-8?q?=E2=80=9D,=20cleanup.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'init.lua') 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.")) -- cgit v1.2.3