mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
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:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user