2013-07-11 20:32:37 +02:00
|
|
|
--[[
|
2015-01-12 17:46:30 +01:00
|
|
|
=====================================================================
|
2014-12-27 20:31:31 +01:00
|
|
|
** Map Tools **
|
|
|
|
By Calinou.
|
2013-07-11 20:32:37 +02:00
|
|
|
|
2017-02-19 13:35:29 +01:00
|
|
|
Copyright (c) 2012-2017 Hugo Locurcio and contributors.
|
2015-01-11 22:20:57 +01:00
|
|
|
Licensed under the zlib license. See LICENSE.md for more information.
|
2015-01-12 17:46:30 +01:00
|
|
|
=====================================================================
|
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
|