summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorauouymous <au@qzx.com>2020-09-24 05:12:32 -0600
committerauouymous <au@qzx.com>2020-09-24 05:12:32 -0600
commitc966a8a57d5c057472eeca6ee3e40655be62993f (patch)
tree955949624fc42ff95b5175be1eb21981e4277b9d
parent61b061f669f84652f6d5dc3a41e3b3fe7a0da370 (diff)
downloadpipeworks-c966a8a57d5c057472eeca6ee3e40655be62993f.tar
pipeworks-c966a8a57d5c057472eeca6ee3e40655be62993f.tar.gz
pipeworks-c966a8a57d5c057472eeca6ee3e40655be62993f.tar.bz2
pipeworks-c966a8a57d5c057472eeca6ee3e40655be62993f.tar.xz
pipeworks-c966a8a57d5c057472eeca6ee3e40655be62993f.zip
Allow players with the protection_bypass privilege or access to
the protection to access wielder node inventories. Fixes #40.
-rw-r--r--init.lua4
1 files 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