Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow non-players to dig steel doors.
  • Loading branch information
MT-Modder authored and paramat committed Mar 3, 2016
1 parent ac843f8 commit 29252c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mods/doors/init.lua
Expand Up @@ -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
Expand Down

0 comments on commit 29252c6

Please sign in to comment.