mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-06 13:54:25 -04:00
Allow digging of protected doors with "protection_bypass"
This was probably lost in either the API rewrite or a merge/rebase. Fixes #929
This commit is contained in:
parent
f18871d60c
commit
e788c19e8b
1 changed files with 3 additions and 0 deletions
|
@ -287,6 +287,9 @@ function doors.register(name, def)
|
||||||
if not def.protected then
|
if not def.protected then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
if minetest.check_player_privs(digger, "protection_bypass") then
|
||||||
|
return true
|
||||||
|
end
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local name = ""
|
local name = ""
|
||||||
if digger then
|
if digger then
|
||||||
|
|
Loading…
Add table
Reference in a new issue