summaryrefslogtreecommitdiff
path: root/wrench
diff options
context:
space:
mode:
authorFixer <Fixer-007@users.noreply.github.com>2018-07-15 13:27:52 +0300
committerSmallJoker <SmallJoker@users.noreply.github.com>2018-07-15 12:27:52 +0200
commit395089dfd83a797ef408a28a8087276b8845bd3d (patch)
tree80868ed539486717c4bdbe9c62cb9bff05707666 /wrench
parent6664714313773e0a0b6e1d55dd2d89c3c571fe18 (diff)
Wrench: Allow picking up with protection_bypass privilege (#393)
This allows admins to move other players locked chests/etc without hassle (relocating flying chests).
Diffstat (limited to 'wrench')
-rw-r--r--wrench/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/wrench/init.lua b/wrench/init.lua
index bae77aa..adb80c9 100644
--- a/wrench/init.lua
+++ b/wrench/init.lua
@@ -120,7 +120,7 @@ minetest.register_tool("wrench:wrench", {
return
end
local meta = minetest.get_meta(pos)
- if def.owned then
+ if def.owned and not minetest.check_player_privs(placer, "protection_bypass") then
local owner = meta:get_string("owner")
if owner and owner ~= player_name then
minetest.log("action", player_name..