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

Doors: Avoid crash on nil player in 'can dig door'

parent 12f17035
No related branches found
No related tags found
No related merge requests found
......@@ -203,12 +203,7 @@ end
local function can_dig_door(pos, digger)
replace_old_owner_information(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
return default.can_interact_with_node(digger, pos)
end
function doors.register(name, def)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment