mirror of
https://github.com/minetest-mods/areas.git
synced 2025-07-06 18:10:24 +02: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