Fixed wrong method call in ChunkIOProvider.

When a chunk fails to load async, we fallback to the original sync method.
In this case, it was calling the async method twice which ended up causing
a stackoverflow.
This commit is contained in:
bloodshot committed 2014-06-29 14:27:37 -04:00
1 parent 5217f6f8bb
commit 2bfda259fa
1 file changed
+1 -1
@@ -34,7 +34,7 @@ class ChunkIOProvider implements AsynchronousExecutor.CallBackProvider<QueuedChu
public void callStage2(QueuedChunk queuedChunk, net.minecraft.world.chunk.Chunk chunk) throws RuntimeException {
if(chunk == null) {
// If the chunk loading failed just do it synchronously (may generate)
queuedChunk.provider.loadChunk(queuedChunk.x, queuedChunk.z);
queuedChunk.provider.originalLoadChunk(queuedChunk.x, queuedChunk.z);
return;
}