Clarification in IChunkLoader#loadChunk comment

This commit is contained in:
themode 2020-09-02 10:30:03 +02:00
parent f8bbc30435
commit 46b772c901
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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);