Retry on paper load failures

This commit is contained in:
Daniel Mills 2021-07-23 08:38:32 -04:00
parent 3a658e10f1
commit 611d3c3b63

View File

@ -63,7 +63,8 @@ public class AsyncPregenMethod implements PregeneratorMethod {
PaperLib.getChunkAtAsync(world, x, z, true).get();
listener.onChunkGenerated(x, z);
} catch (Throwable e) {
e.printStackTrace();
J.sleep(5);
future.add(burst.complete(() -> completeChunk(x, z, listener)));
}
}