Compare commits

..

No commits in common. "unprotect" and "master" have entirely different histories.

View File

@ -145,6 +145,13 @@ minetest.register_node( "trophies:gold_cup", {
end,
on_dig = function ( pos, node, player )
local player_name = player:get_player_name( )
if not default.is_owner( pos, player ) then
minetest.record_protection_violation( pos, player_name )
return
end
local player_inv = player:get_inventory( )
local itemstack = ItemStack( node.name )