From c966a8a57d5c057472eeca6ee3e40655be62993f Mon Sep 17 00:00:00 2001 From: auouymous Date: Thu, 24 Sep 2020 05:12:32 -0600 Subject: Allow players with the protection_bypass privilege or access to the protection to access wielder node inventories. Fixes #40. --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 3034ff3..835ab62 100644 --- a/init.lua +++ b/init.lua @@ -71,8 +71,8 @@ function pipeworks.may_configure(pos, player) local meta = minetest.get_meta(pos) local owner = meta:get_string("owner") - if owner ~= "" then -- wielders and filters - return owner == name + if owner ~= "" and owner == name then -- wielders and filters + return true end return not minetest.is_protected(pos, name) end -- cgit v1.2.3