Fixed shift-click-stick returning too many claims.
Was returning claims from all worlds near player's coords, not just the world the player is in.
This commit is contained in:
parent
285d5c655a
commit
38362a3547
|
|
@ -1530,7 +1530,13 @@ public abstract class DataStore
|
|||
ArrayList<Claim> claimsInChunk = this.chunksToClaimsMap.get(chunkID);
|
||||
if(claimsInChunk != null)
|
||||
{
|
||||
claims.addAll(claimsInChunk);
|
||||
for(Claim claim : claimsInChunk)
|
||||
{
|
||||
if(claim.getLesserBoundaryCorner().getWorld().equals(location.getWorld()))
|
||||
{
|
||||
claims.add(claim);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user