From 46b772c9015a5c6df39b8669bffec35aa0e1ec9c Mon Sep 17 00:00:00 2001 From: themode Date: Wed, 2 Sep 2020 10:30:03 +0200 Subject: [PATCH] Clarification in IChunkLoader#loadChunk comment --- src/main/java/net/minestom/server/instance/IChunkLoader.java | 2 +- .../java/net/minestom/server/instance/InstanceContainer.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/minestom/server/instance/IChunkLoader.java b/src/main/java/net/minestom/server/instance/IChunkLoader.java index 2632368f8..dbe993253 100644 --- a/src/main/java/net/minestom/server/instance/IChunkLoader.java +++ b/src/main/java/net/minestom/server/instance/IChunkLoader.java @@ -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 diff --git a/src/main/java/net/minestom/server/instance/InstanceContainer.java b/src/main/java/net/minestom/server/instance/InstanceContainer.java index c4bcd01db..15de175cf 100644 --- a/src/main/java/net/minestom/server/instance/InstanceContainer.java +++ b/src/main/java/net/minestom/server/instance/InstanceContainer.java @@ -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);