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:
parent
fbd3c11f89
commit
8eb7ced9c0
|
|
@ -918,7 +918,7 @@ public abstract class DataStore
|
||||||
for(int i = 0; i < this.claims.size(); i++)
|
for(int i = 0; i < this.claims.size(); i++)
|
||||||
{
|
{
|
||||||
Claim claim = this.claims.get(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);
|
claimsToDelete.add(claim);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user