1
0
Fork 0

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

kcx-1614
Prototik 2015-10-15 00:09:55 +07:00
parent 98f4f02f55
commit 0097a0744a
1 changed files with 1 additions and 1 deletions

View File

@ -1464,7 +1464,7 @@
+
+ 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)