mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-07 19:31:37 +01:00
Clarification in IChunkLoader#loadChunk comment
This commit is contained in:
parent
f8bbc30435
commit
46b772c901
@ -9,7 +9,7 @@ import java.util.function.Consumer;
|
||||
public interface IChunkLoader {
|
||||
|
||||
/**
|
||||
* Load a specific chunk
|
||||
* Load a specific chunk, all blocks should be set since the {@link ChunkGenerator} is not applied
|
||||
*
|
||||
* @param instance the instance where the chunk belong
|
||||
* @param chunkX the chunk X
|
||||
|
@ -467,6 +467,7 @@ public class InstanceContainer extends Instance {
|
||||
cacheChunk(chunk);
|
||||
|
||||
if (chunkGenerator != null && blockProvider == null) {
|
||||
// Execute the chunk generator to populate the chunk
|
||||
final ChunkBatch chunkBatch = createChunkBatch(chunk);
|
||||
|
||||
chunkBatch.flushChunkGenerator(chunkGenerator, callback);
|
||||
|
Loading…
Reference in New Issue
Block a user