Skip to content
Permalink
Browse files
Fix infinite loop in addowner checks.
Fixes WORLDGUARD-4138.
  • Loading branch information
wizjany committed Sep 22, 2019
1 parent 20db925 commit fc0f7acab54774faf98b76e4b9a07f286cceff15
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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;

0 comments on commit fc0f7ac

Please sign in to comment.