forked from mff/maptools
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.
This commit is contained in:
parent
fa62966bbe
commit
ea85b3e073
10
init.lua
10
init.lua
@ -16,14 +16,14 @@ 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")
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user