mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-25 02:27:38 +01:00
Print problematic future
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
a70bb15146
commit
b8b850fca1
@ -274,7 +274,7 @@ public class InstanceContainer extends Instance {
|
|||||||
cacheChunk(chunk);
|
cacheChunk(chunk);
|
||||||
EventDispatcher.call(new InstanceChunkLoadEvent(this, chunk));
|
EventDispatcher.call(new InstanceChunkLoadEvent(this, chunk));
|
||||||
final CompletableFuture<Chunk> future = this.loadingChunks.remove(index);
|
final CompletableFuture<Chunk> future = this.loadingChunks.remove(index);
|
||||||
assert future == completableFuture;
|
assert future == completableFuture : "Invalid future: " + future;
|
||||||
future.complete(chunk);
|
future.complete(chunk);
|
||||||
})
|
})
|
||||||
.exceptionally(throwable -> {
|
.exceptionally(throwable -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user