diff options
author | auouymous <au@qzx.com> | 2020-09-24 05:12:32 -0600 |
---|---|---|
committer | auouymous <au@qzx.com> | 2020-09-24 05:12:32 -0600 |
commit | c966a8a57d5c057472eeca6ee3e40655be62993f (patch) | |
tree | 955949624fc42ff95b5175be1eb21981e4277b9d | |
parent | 61b061f669f84652f6d5dc3a41e3b3fe7a0da370 (diff) | |
download | pipeworks-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.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |