From ddf8950cc0376b6e877dddb32d65ad4e3a4c1152 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Mon, 29 May 2023 14:10:15 -0500 Subject: [PATCH] add BatchGenerationEnvironment warn comment --- .../wrappers/worldGeneration/BatchGenerationEnvironment.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/src/main/java/com/seibel/lod/common/wrappers/worldGeneration/BatchGenerationEnvironment.java b/common/src/main/java/com/seibel/lod/common/wrappers/worldGeneration/BatchGenerationEnvironment.java index 11e448ab7..5014c9a52 100644 --- a/common/src/main/java/com/seibel/lod/common/wrappers/worldGeneration/BatchGenerationEnvironment.java +++ b/common/src/main/java/com/seibel/lod/common/wrappers/worldGeneration/BatchGenerationEnvironment.java @@ -308,6 +308,8 @@ public final class BatchGenerationEnvironment extends AbstractBatchGenerationEnv #if POST_MC_1_19 chunkData = level.getChunkSource().chunkMap.readChunk(chunkPos).get().orElse(null); #else + // Warning: if multiple threads attempt to access this method at the same time, + // it can throw EOFExceptions that are caught and logged by Minecraft chunkData = level.getChunkSource().chunkMap.readChunk(chunkPos); #endif }