From 0097a0744a20a2ecf8f74a474e9a05b9e84b7a48 Mon Sep 17 00:00:00 2001 From: Prototik Date: Thu, 15 Oct 2015 00:09:55 +0700 Subject: [PATCH] Check for active chunks before persistent, could be faster on big maps --- patches/net/minecraft/world/World.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/net/minecraft/world/World.java.patch b/patches/net/minecraft/world/World.java.patch index 131c2bb..a00f029 100644 --- a/patches/net/minecraft/world/World.java.patch +++ b/patches/net/minecraft/world/World.java.patch @@ -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)