Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
07b2ce0775 |
7
init.lua
7
init.lua
@ -145,13 +145,6 @@ minetest.register_node( "trophies:gold_cup", {
|
|||||||
end,
|
end,
|
||||||
|
|
||||||
on_dig = function ( pos, node, player )
|
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 player_inv = player:get_inventory( )
|
||||||
local itemstack = ItemStack( node.name )
|
local itemstack = ItemStack( node.name )
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user