From 876989346b06115733291d55bfaeb73f753a6258 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Fri, 18 Aug 2023 16:49:41 -0500 Subject: [PATCH] Fix biome non-existent exception when saving chunks on Fabric --- .../fabric/mixins/server/MixinChunkMap.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/fabric/src/main/java/com/seibel/distanthorizons/fabric/mixins/server/MixinChunkMap.java b/fabric/src/main/java/com/seibel/distanthorizons/fabric/mixins/server/MixinChunkMap.java index 6f143362d..7d9549cff 100644 --- a/fabric/src/main/java/com/seibel/distanthorizons/fabric/mixins/server/MixinChunkMap.java +++ b/fabric/src/main/java/com/seibel/distanthorizons/fabric/mixins/server/MixinChunkMap.java @@ -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