summaryrefslogtreecommitdiff
path: root/maptools/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'maptools/init.lua')
-rw-r--r--maptools/init.lua20
1 files changed, 8 insertions, 12 deletions
diff --git a/maptools/init.lua b/maptools/init.lua
index a329f62..a7ae4a5 100644
--- a/maptools/init.lua
+++ b/maptools/init.lua
@@ -10,20 +10,11 @@ Licensed under the zlib license. See LICENSE.md for more information.
maptools = {}
-local S
-if minetest.get_modpath("intllib") then
- S = intllib.Getter()
-else
- S = function(s) return s end
-end
-maptools.intllib = S
-
local modpath = minetest.get_modpath("maptools")
-maptools.drop_msg = function(itemstack, player)
- local name = player:get_player_name()
- minetest.chat_send_player(name, S("[maptools] tools/nodes do not drop!"))
-end
+local S, NS = dofile(modpath .. "/intllib.lua")
+maptools.S = S
+maptools.NS = NS
dofile(modpath .. "/config.lua")
dofile(modpath .. "/aliases.lua")
@@ -32,6 +23,11 @@ dofile(modpath .. "/default_nodes.lua")
dofile(modpath .. "/nodes.lua")
dofile(modpath .. "/tools.lua")
+maptools.drop_msg = function(itemstack, player)
+ local name = player:get_player_name()
+ minetest.chat_send_player(name, S("[maptools] tools/nodes do not drop!"))
+end
+
if minetest.setting_getbool("log_mods") then
minetest.log("action", S("[maptools] loaded."))
end