mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-21 06:43:17 -04:00
screwdriver: Allow protection bypass
This commit is contained in:
parent
12f75ab803
commit
6a0d67e30f
1 changed files with 2 additions and 1 deletions
|
@ -93,7 +93,8 @@ screwdriver.handler = function(itemstack, user, pointed_thing, mode, uses)
|
|||
local pos = pointed_thing.under
|
||||
local player_name = user and user:get_player_name() or ""
|
||||
|
||||
if minetest.is_protected(pos, player_name) then
|
||||
if minetest.is_protected(pos, player_name) and
|
||||
not minetest.check_player_privs(player_name, { protection_bypass = true }) then
|
||||
minetest.record_protection_violation(pos, player_name)
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue