mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-03-15 12:21:24 +00:00
Allow non-players to dig steel doors.
This commit is contained in:
parent
ac843f8fe7
commit
29252c6fb2
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue