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
@@ -129,8 +129,8 @@ public void addOwner(CommandContext args, Actor sender) throws CommandException
}
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.
You can’t perform that action at this time.