mirror of
https://github.com/minetest-mods/areas.git
synced 2026-01-02 07:15:19 +01:00
Check for group ownership in canInteract
This commit is contained in:
2
api.lua
2
api.lua
@@ -74,7 +74,7 @@ function areas:canInteract(pos, name)
|
||||
end
|
||||
local owned = false
|
||||
for _, area in pairs(self:getAreasAtPos(pos)) do
|
||||
if area.owner == name or area.open then
|
||||
if area.owner == name or area.open or usergroups:user_is_in_group(name, area.group) then
|
||||
return true
|
||||
else
|
||||
owned = true
|
||||
|
||||
Reference in New Issue
Block a user