promotional bannermobile promotional banner

Serene Seasons Gen Fix

Fixes server crashes when generating new chunks caused by serene seasons.

What does this mod do?

This mod adds one mixin that bypasses a certain chunk in serene seasons code that uses a known problematic method, thus preventing server crashes.

Usually the error in server log will look something like this:

[Server thread/ERROR] [net.minecraft.util.thread.BlockableEventLoop/FATAL]: Error executing task on Chunk source main thread executor for minecraft:overworld
net.minecraft.ReportedException: Exception generating new chunk
    at TRANSFORMER...
...at java.base/java.lang.Thread.run(Thread.java:1474) [?:?]
Caused by: java.lang.IllegalStateException: Requested chunk unavailable during world generation
    at TRANSFORMER/minecraft@1.21.1/net.minecraft.server.level.WorldGenRegion.getChunk(WorldGenRegion.java:129) ~[server-1.21.1-20240808.144430-srg.jar%23195!/:?]
    at TRANSFORMER/minecraft@1.21.1/net.minecraft.world.level.LevelReader.getNoiseBiome(LevelReader.java:59) ~[server-1.21.1-20240808.144430-srg.jar%23195!/:?]
    at TRANSFORMER/minecraft@1.21.1/net.minecraft.world.level.biome.BiomeManager.getBiome(BiomeManager.java:79) ~[server-1.21.1-20240808.144430-srg.jar%23195!/:?]
    at TRANSFORMER/minecraft@1.21.1/net.minecraft.world.level.LevelReader.getBiome(LevelReader.java:39) ~[server-1.21.1-20240808.144430-srg.jar%23195!/:?]
    at TRANSFORMER/sereneseasons@10.1.0.3/sereneseasons.season.SeasonHooks.warmEnoughToRainSeasonal(SeasonHooks.java:106) ~[SereneSeasons%20v10.1.0.3.jar%23254!/:10.1.0.3]
    at TRANSFORMER/sereneseasons@10.1.0.3/sereneseasons.season.SeasonHooks.shouldFreezeWarmEnoughToRainHook(SeasonHooks.java:51) ~[SereneSeasons%20v10.1.0.3.jar%23254!/:10.1.0.3]

After which the server crashes.

This mod was created for stardance, so be sure to check it out!

Disclaimer

The mod is very barebones and I do not guarantee that it will fix the issue. From my testing I was able to generate over 200 000 chunks without any problems/crashes (before I made this mod the server crashed after just about 50 chunks were generated), but that does not mean it will fix the issue in your specific case.

Tip:

I reccomend using this alongside WorldGenFeatureFix (not sponsored or anything)

The Serene Seasons Gen Fix Team

profile avatar
  • 2
    Projects
  • 1.2K
    Downloads

Heya there! I'm a small dev making basically nothing of big importance.

More from Cat_Master543