mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-01-20 15:11:39 +01:00
Fix infinite loop in addowner checks.
Fixes WORLDGUARD-4138.
This commit is contained in:
parent
b0ebbee3de
commit
4707b7c7f0
@ -129,8 +129,8 @@ private static Callable<DefaultDomain> checkedAddOwners(Actor sender, RegionMana
|
|||||||
}
|
}
|
||||||
if (region.getOwners().size() == 0) {
|
if (region.getOwners().size() == 0) {
|
||||||
boolean anyOwners = false;
|
boolean anyOwners = false;
|
||||||
ProtectedRegion parent;
|
ProtectedRegion parent = region;
|
||||||
while ((parent = region.getParent()) != null) {
|
while ((parent = parent.getParent()) != null) {
|
||||||
if (parent.getOwners().size() > 0) {
|
if (parent.getOwners().size() > 0) {
|
||||||
anyOwners = true;
|
anyOwners = true;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user