mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-23 07:10:19 +01:00
Allow non-players to dig steel doors.
This commit is contained in:
parent
ac843f8fe7
commit
29252c6fb2
@ -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…
Reference in New Issue
Block a user