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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user