mirror of
https://github.com/minetest-mods/technic.git
synced 2024-08-20 21:44:14 +02:00
Wrench: Allow picking up with protection_bypass privilege (#393)
This allows admins to move other players locked chests/etc without hassle (relocating flying chests).
This commit is contained in:
parent
6664714313
commit
395089dfd8
@ -120,7 +120,7 @@ minetest.register_tool("wrench:wrench", {
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
local meta = minetest.get_meta(pos)
|
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")
|
local owner = meta:get_string("owner")
|
||||||
if owner and owner ~= player_name then
|
if owner and owner ~= player_name then
|
||||||
minetest.log("action", player_name..
|
minetest.log("action", player_name..
|
||||||
|
Loading…
Reference in New Issue
Block a user