forked from minetest/minetest_game
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
|
return true
|
||||||
end
|
end
|
||||||
local meta = minetest.get_meta(pos)
|
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
|
end
|
||||||
|
|
||||||
if not def.sounds then
|
if not def.sounds then
|
||||||
|
Loading…
Reference in New Issue
Block a user