Skip to content
Snippets Groups Projects
Commit 7c42c411 authored by upsilon's avatar upsilon Committed by paramat
Browse files

doors: record protection violation if it cannot be dug

parent 08eec2be
Branches
No related tags found
No related merge requests found
......@@ -203,7 +203,12 @@ end
local function can_dig_door(pos, digger)
replace_old_owner_information(pos)
return default.can_interact_with_node(digger, pos)
if default.can_interact_with_node(digger, pos) then
return true
else
minetest.record_protection_violation(pos, digger:get_player_name())
return false
end
end
function doors.register(name, def)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment