mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-11-26 00:23:44 +01:00
Check protection violations on digging drawer (#16)
This commit is contained in:
parent
aa287af788
commit
336027fbd7
@ -100,7 +100,10 @@ function drawers.drawer_on_dig(pos, node, player)
|
||||
if core.registered_nodes[node.name] then
|
||||
drawerType = core.registered_nodes[node.name].groups.drawer
|
||||
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 k = 1
|
||||
|
Loading…
Reference in New Issue
Block a user