Check protection violations on digging drawer (#16)

This commit is contained in:
gpcf 2018-02-07 20:40:28 +01:00 committed by LNJ
parent aa287af788
commit 336027fbd7

@ -100,7 +100,10 @@ function drawers.drawer_on_dig(pos, node, player)
if core.registered_nodes[node.name] then if core.registered_nodes[node.name] then
drawerType = core.registered_nodes[node.name].groups.drawer drawerType = core.registered_nodes[node.name].groups.drawer
end end
if core.is_protected(pos,player:get_player_name()) then
core.record_protection_violation(pos,player:get_player_name())
return 0
end
local meta = core.get_meta(pos) local meta = core.get_meta(pos)
local k = 1 local k = 1