Allow non-players to dig steel doors.

This commit is contained in:
MT-Modder 2016-02-25 18:16:39 -05:00 committed by paramat
parent ac843f8fe7
commit 29252c6fb2

View File

@ -288,7 +288,11 @@ function doors.register(name, def)
return true
end
local meta = minetest.get_meta(pos)
return meta:get_string("doors_owner") == digger:get_player_name()
local name = ""
if digger then
name = digger:get_player_name()
end
return meta:get_string("doors_owner") == name
end
if not def.sounds then