mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-12-29 00:57:29 +01:00
Allow players with the protection_bypass privilege or access to
the protection to access wielder node inventories. Fixes #40.
This commit is contained in:
parent
61b061f669
commit
c966a8a57d
4
init.lua
4
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
|
||||
|
Loading…
Reference in New Issue
Block a user