From 208c8f0c7216a28980c18a65debc22f840b6b1aa Mon Sep 17 00:00:00 2001 From: RoboMWM Date: Wed, 18 Jan 2017 11:09:17 -0800 Subject: [PATCH] Temporarily fix #62 Potentially related: #53 --- src/me/ryanhamshire/GriefPrevention/DataStore.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/me/ryanhamshire/GriefPrevention/DataStore.java b/src/me/ryanhamshire/GriefPrevention/DataStore.java index 1fff612..b9fb7ce 100644 --- a/src/me/ryanhamshire/GriefPrevention/DataStore.java +++ b/src/me/ryanhamshire/GriefPrevention/DataStore.java @@ -558,9 +558,9 @@ public abstract class DataStore synchronized void deleteClaim(Claim claim, boolean fireEvent, boolean releasePets) { //delete any children - for(int j = 0; j < claim.children.size(); j++) + for(int j = 1; (j - 1) < claim.children.size(); j++) { - this.deleteClaim(claim.children.get(j--), true); + this.deleteClaim(claim.children.get(j-1), true); } //subdivisions must also be removed from the parent claim child list @@ -1159,13 +1159,13 @@ public abstract class DataStore if((playerID == claim.ownerID || (playerID != null && playerID.equals(claim.ownerID)))) claimsToDelete.add(claim); } - + //delete them one by one for(int i = 0; i < claimsToDelete.size(); i++) { Claim claim = claimsToDelete.get(i); claim.removeSurfaceFluids(null); - + this.deleteClaim(claim, releasePets); //if in a creative mode world, delete the claim