Retry on paper load failures

This commit is contained in:
Daniel Mills committed 2021-07-23 08:38:32 -04:00
1 parent 3a658e10f1
commit 611d3c3b63
1 file changed
+2 -1
@@ -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)));
}
}