Skip to content
Permalink
Browse files

Allow non-players to dig steel doors.

  • Loading branch information
MT-Modder authored and paramat committed Mar 3, 2016
1 parent ac843f8 commit 29252c6fb2f767172e2d637b6ca784958ddbc392
Showing with 5 additions and 1 deletion.
  1. +5 −1 mods/doors/init.lua
@@ -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

0 comments on commit 29252c6

Please sign in to comment.