Fix claims in other worlds preventing piston movement with EVERYWHERE_SIMPLE(#1099)
This commit is contained in:
parent
7d423286b9
commit
1f98733f3b
|
|
@ -606,8 +606,13 @@ public class BlockEventHandler implements Listener
|
|||
for (int chunkZ = minZ >> 4; chunkZ <= chunkZMax; ++chunkZ)
|
||||
{
|
||||
ArrayList<Claim> chunkClaims = dataStore.chunksToClaimsMap.get(DataStore.getChunkHash(chunkX, chunkZ));
|
||||
if (chunkClaims != null)
|
||||
intersectable.addAll(chunkClaims);
|
||||
if (chunkClaims == null) continue;
|
||||
|
||||
for (Claim claim : chunkClaims)
|
||||
{
|
||||
if (pistonBlock.getWorld().equals(claim.getLesserBoundaryCorner().getWorld()))
|
||||
intersectable.add(claim);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user