Skip to content
Permalink
Browse files

doors: record protection violation if it cannot be dug

  • Loading branch information...
paly2 authored and paramat committed Mar 25, 2017
1 parent 08eec2b commit 7c42c41170996cf477620cbbec97c2a46a397199
Showing with 6 additions and 1 deletion.
  1. +6 −1 mods/doors/init.lua
@@ -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 comments on commit 7c42c41

Please sign in to comment.
You can’t perform that action at this time.