mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-01-23 16:41:20 +01:00
Add special case for global regions in RegionOverlapAssociation too.
This commit is contained in:
parent
6a4fac63e8
commit
41d922cb27
@ -48,7 +48,7 @@ public RegionOverlapAssociation(Set<ProtectedRegion> source) {
|
||||
@Override
|
||||
public Association getAssociation(List<ProtectedRegion> regions) {
|
||||
for (ProtectedRegion region : regions) {
|
||||
if (source.contains(region)) {
|
||||
if ((region.getId().equals(ProtectedRegion.GLOBAL_REGION) && source.isEmpty()) || source.contains(region)) {
|
||||
return Association.OWNER;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user