2013-07-11 20:32:37 +02:00
|
|
|
--[[
|
2014-12-27 20:31:31 +01:00
|
|
|
======================================================================
|
|
|
|
** Map Tools **
|
|
|
|
By Calinou.
|
2013-07-11 20:32:37 +02:00
|
|
|
|
2014-12-27 20:31:31 +01:00
|
|
|
Copyright (c) 2012-2014 Calinou and contributors.
|
2015-01-11 22:20:57 +01:00
|
|
|
Licensed under the zlib license. See LICENSE.md for more information.
|
2014-12-27 20:31:31 +01:00
|
|
|
======================================================================
|
|
|
|
--]]
|
2013-07-11 20:32:37 +02:00
|
|
|
|
2014-12-27 20:31:31 +01:00
|
|
|
maptools = {}
|
2013-07-11 20:32:37 +02:00
|
|
|
|
2014-12-27 20:31:31 +01:00
|
|
|
local S
|
|
|
|
if minetest.get_modpath("intllib") then
|
|
|
|
S = intllib.Getter()
|
|
|
|
else
|
|
|
|
S = function(s) return s end
|
2013-07-11 20:32:37 +02:00
|
|
|
end
|
2014-12-27 20:31:31 +01:00
|
|
|
maptools.intllib = S
|
2013-07-11 20:32:37 +02:00
|
|
|
|
2014-12-27 20:31:31 +01:00
|
|
|
local modpath = minetest.get_modpath("maptools")
|
2013-07-11 20:32:37 +02:00
|
|
|
|
2014-12-27 20:31:31 +01:00
|
|
|
dofile(modpath .. "/config.lua")
|
|
|
|
dofile(modpath .. "/aliases.lua")
|
|
|
|
dofile(modpath .. "/craftitems.lua")
|
|
|
|
dofile(modpath .. "/default_nodes.lua")
|
|
|
|
dofile(modpath .. "/nodes.lua")
|
|
|
|
dofile(modpath .. "/tools.lua")
|
2013-07-11 21:53:34 +02:00
|
|
|
|
2014-04-30 20:04:44 +02:00
|
|
|
if minetest.setting_getbool("log_mods") then
|
2014-12-27 20:31:31 +01:00
|
|
|
minetest.log("action", S("[maptools] loaded."))
|
2014-04-30 20:04:44 +02:00
|
|
|
end
|