mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-22 23:10:17 +01: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
c94349eaef
commit
22e32a01ad
@ -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…
Reference in New Issue
Block a user