summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2020-09-24 15:33:17 +0000
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2020-09-24 15:33:17 +0000
commitd93396600f25f3f8058a995753ca9277dd9a2ae9 (patch)
tree955949624fc42ff95b5175be1eb21981e4277b9d
parent61b061f669f84652f6d5dc3a41e3b3fe7a0da370 (diff)
parentc966a8a57d5c057472eeca6ee3e40655be62993f (diff)
downloadpipeworks-d93396600f25f3f8058a995753ca9277dd9a2ae9.tar
pipeworks-d93396600f25f3f8058a995753ca9277dd9a2ae9.tar.gz
pipeworks-d93396600f25f3f8058a995753ca9277dd9a2ae9.tar.bz2
pipeworks-d93396600f25f3f8058a995753ca9277dd9a2ae9.tar.xz
pipeworks-d93396600f25f3f8058a995753ca9277dd9a2ae9.zip
Merge branch 'protected-access-to-wielders' into 'master'
Allow protected access to wielder inventories. Closes #40 See merge request VanessaE/pipeworks!27
-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