Change assert

This commit is contained in:
themode 2022-03-01 01:04:58 +01:00
parent 043d323486
commit 9a7d5039a7
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ public class InstanceContainer extends Instance {
cacheChunk(chunk);
EventDispatcher.call(new InstanceChunkLoadEvent(this, chunk));
final CompletableFuture<Chunk> future = this.loadingChunks.remove(index);
assert future != null : "Future should not be null";
assert future == completableFuture;
future.complete(chunk);
});
if (loader.supportsParallelLoading()) {