maptools/init.lua
Ragulan R ea85b3e073 Move maptools.drop_msg above dofiles
Maptools tools/items have become droppable again, the function to prevent this is loaded after nodes.lua, leading the on_drop function to be nil.
2019-10-04 00:21:18 +02:00

30 lines
826 B
Lua

--[[
=====================================================================
** Map Tools **
By Calinou.
Copyright © 2012-2019 Hugo Locurcio and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
=====================================================================
--]]
maptools = {}
local modpath = minetest.get_modpath("maptools")
local S, NS = dofile(modpath .. "/intllib.lua")
maptools.S = S
maptools.NS = NS
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
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")