Skip to content

Chunk loading is not working #2140

Answered by ZakShearman
KianBrose asked this question in Help
Discussion options

You must be logged in to vote

InstanceContainer#loadChunk returns a CompletableFuture: https://github.com/Minestom/Minestom/blob/master/src/main/java/net/minestom/server/instance/InstanceContainer.java#L240

You need to wait these completable futures (CompletableFuture.allOf might be useful for you here) for the chunks to be loaded.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@KianBrose
Comment options

Answer selected by KianBrose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants