From bb05ff8fd210fc9fac0b521f15e755380e6916d3 Mon Sep 17 00:00:00 2001
From: coil <51716565+coil0@users.noreply.github.com>
Date: Sun, 21 Jul 2019 12:40:57 +0200
Subject: [PATCH] Reject constructor in constructor slot inventories (#505)

---
 wrench/init.lua |    2 +-
 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 @@
 			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..

--
Gitblit v1.8.0