add BatchGenerationEnvironment warn comment

This commit is contained in:
James Seibel
2023-05-29 14:10:15 -05:00
parent f2832a0fd6
commit ddf8950cc0
@@ -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
}