Fixed /deletealladminclaims NPE.

I think this has been broken since the beginning of the UUID migration
work, and nobody noticed.
This commit is contained in:
ryanhamshire 2014-12-04 16:18:14 -08:00
parent fbd3c11f89
commit 8eb7ced9c0

View File

@ -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);
}