mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Fix paper async chunk errors
This commit is contained in:
parent
611d3c3b63
commit
8f1b48b0ab
@ -69,15 +69,14 @@ public class AsyncPregenMethod implements PregeneratorMethod {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void waitForChunks() {
|
private void waitForChunks() {
|
||||||
for (CompletableFuture<?> i : future) {
|
for (CompletableFuture<?> i : future.copy()) {
|
||||||
try {
|
try {
|
||||||
i.get();
|
i.get();
|
||||||
|
future.remove(i);
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
future.clear();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user