mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-12-29 17:17:29 +01:00
Merge branch 'protected-access-to-wielders' into 'master'
Allow protected access to wielder inventories. Closes #40 See merge request VanessaE/pipeworks!27
This commit is contained in:
commit
d93396600f
4
init.lua
4
init.lua
@ -71,8 +71,8 @@ function pipeworks.may_configure(pos, player)
|
|||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local owner = meta:get_string("owner")
|
local owner = meta:get_string("owner")
|
||||||
|
|
||||||
if owner ~= "" then -- wielders and filters
|
if owner ~= "" and owner == name then -- wielders and filters
|
||||||
return owner == name
|
return true
|
||||||
end
|
end
|
||||||
return not minetest.is_protected(pos, name)
|
return not minetest.is_protected(pos, name)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user