Print problematic future

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2022-04-08 12:20:17 +02:00
parent a70bb15146
commit b8b850fca1

View File

@ -274,7 +274,7 @@ public class InstanceContainer extends Instance {
cacheChunk(chunk);
EventDispatcher.call(new InstanceChunkLoadEvent(this, chunk));
final CompletableFuture<Chunk> future = this.loadingChunks.remove(index);
assert future == completableFuture;
assert future == completableFuture : "Invalid future: " + future;
future.complete(chunk);
})
.exceptionally(throwable -> {