mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-06 05:44:26 -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
|
||||
return true
|
||||
end
|
||||
if minetest.check_player_privs(digger, "protection_bypass") then
|
||||
return true
|
||||
end
|
||||
local meta = minetest.get_meta(pos)
|
||||
local name = ""
|
||||
if digger then
|
||||
|
|
Loading…
Add table
Reference in a new issue