Fix biome non-existent exception when saving chunks on Fabric

This commit is contained in:
James Seibel
2023-08-18 16:49:41 -05:00
parent 7278bc1548
commit 876989346b
@@ -37,6 +37,17 @@ public class MixinChunkMap
// in 1.16.5 some chunks may be missing their biomes, which cause issues when attempting to save them
return;
}
#else
try
{
// this will throw an exception if the biomes aren't set up
chunk.getNoiseBiome(0,0,0);
}
catch (Exception e)
{
// some chunks may be missing their biomes, which cause issues when attempting to save them
return;
}
#endif