From 38362a354705ce2313d32309fd041cbc83f087f5 Mon Sep 17 00:00:00 2001 From: ryanhamshire Date: Tue, 15 Dec 2015 13:48:21 -0800 Subject: [PATCH] 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. --- src/me/ryanhamshire/GriefPrevention/DataStore.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/me/ryanhamshire/GriefPrevention/DataStore.java b/src/me/ryanhamshire/GriefPrevention/DataStore.java index 4b232aa..d22b346 100644 --- a/src/me/ryanhamshire/GriefPrevention/DataStore.java +++ b/src/me/ryanhamshire/GriefPrevention/DataStore.java @@ -1530,7 +1530,13 @@ public abstract class DataStore ArrayList 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); + } + } } } }