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

Этот коммит содержится в:
paramat
2018-02-02 18:11:17 +00:00
коммит произвёл paramat
родитель 12f1703537
Коммит d5907d5f1e

Просмотреть файл

@@ -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)