Coral world generation crash in 2.7.3 — proposed fix attached #21

Open yjnwi.tngl.sh
Open opened by yjnwi.tngl.sh

Hi!

I encountered a crash in Infinite Dimensions 2.7.3 for Minecraft 1.21.1 Fabric.

The error was Requested chunk unavailable during world generation, triggered through the coral handling code (noCoralDecay and InfinityMethods.isBiomeInfinity).

We investigated the problem and created a small fix that avoids requesting neighboring chunk biome data during world generation.

After compiling the modified version, I was able to load and explore the previously affected dimension without reproducing the crash.

The dimension was infinity:generated_206548248, generated from the book text fzzwfsc.

I've prepared a ZIP containing the source patch, the two modified Java files, the original crash evidence, and a technical explanation.

Download the fix here:

https://drive.google.com/file/d/1zKe1N_eQvh2qHjcxEiCzKhMD3FIHnfFS/view?usp=sharing

I'm sharing this completely free of charge so you can review and incorporate it if you find it useful.

The fix has worked in my tests, although it still needs broader testing. I've also documented a possible change in coral behavior that you may want to review.

Thank you for creating and maintaining Infinite Dimensions!

Sign up or Sign in to add to the discussion.