1
0
forked from xjboss/KCauldronX

Check for active chunks before persistent, could be faster on big maps

This commit is contained in:
Prototik 2015-10-15 00:09:55 +07:00
parent 98f4f02f55
commit 0097a0744a

View File

@ -1464,7 +1464,7 @@
+ +
+ public boolean isActiveChunk(int x, int z) + public boolean isActiveChunk(int x, int z)
+ { + {
+ return getPersistentChunks().containsKey(new ChunkCoordIntPair(x, z)) || activeChunkSet_CB.containsKey(chunkToKey(x, z)); + return activeChunkSet_CB.containsKey(chunkToKey(x, z)) || getPersistentChunks().containsKey(new ChunkCoordIntPair(x, z));
+ } + }
+ +
+ public boolean isActiveChunk(long key) + public boolean isActiveChunk(long key)