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