From 8eb7ced9c0021918e57e3ab13593c18571d6bbfd Mon Sep 17 00:00:00 2001 From: ryanhamshire Date: Thu, 4 Dec 2014 16:18:14 -0800 Subject: [PATCH] Fixed /deletealladminclaims NPE. I think this has been broken since the beginning of the UUID migration work, and nobody noticed. --- src/me/ryanhamshire/GriefPrevention/DataStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me/ryanhamshire/GriefPrevention/DataStore.java b/src/me/ryanhamshire/GriefPrevention/DataStore.java index 7dbf0c5..15f201b 100644 --- a/src/me/ryanhamshire/GriefPrevention/DataStore.java +++ b/src/me/ryanhamshire/GriefPrevention/DataStore.java @@ -918,7 +918,7 @@ public abstract class DataStore for(int i = 0; i < this.claims.size(); i++) { Claim claim = this.claims.get(i); - if(playerID.equals(claim.ownerID) && (deleteCreativeClaims || !GriefPrevention.instance.creativeRulesApply(claim.getLesserBoundaryCorner()))) + if((playerID == claim.ownerID || playerID.equals(claim.ownerID)) && (deleteCreativeClaims || !GriefPrevention.instance.creativeRulesApply(claim.getLesserBoundaryCorner()))) claimsToDelete.add(claim); }