Add special case for global regions in RegionOverlapAssociation too.

This commit is contained in:
sk89q 2015-01-15 16:49:07 -08:00
parent 6a4fac63e8
commit 41d922cb27

View File

@ -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;
}
}