Prevent tools & nodes from being dropped (#11)

Adds a function to message a player that they cannot drop tools/nodes registered by maptools
This commit is contained in:
shivajiva101
2018-07-27 11:10:09 +01:00
committed by SmallJoker
parent 7459fc3389
commit 106bba39b9
4 changed files with 71 additions and 3 deletions

View File

@ -20,6 +20,11 @@ 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
dofile(modpath .. "/config.lua")
dofile(modpath .. "/aliases.lua")
dofile(modpath .. "/craftitems.lua")