From 6ba3111ada3dfa48c2d1ee715f28dcf22b78e0c8 Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Wed, 2 Jul 2025 00:03:14 +1000 Subject: [PATCH] fix default biomes on no biome section data biome --- .../me/cortex/voxy/commonImpl/importers/WorldImporter.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/cortex/voxy/commonImpl/importers/WorldImporter.java b/src/main/java/me/cortex/voxy/commonImpl/importers/WorldImporter.java index bda5ff0a..ae7da6f7 100644 --- a/src/main/java/me/cortex/voxy/commonImpl/importers/WorldImporter.java +++ b/src/main/java/me/cortex/voxy/commonImpl/importers/WorldImporter.java @@ -485,8 +485,11 @@ public class WorldImporter implements IDataImporter { return; } var blockStates = blockStatesRes.getPartialOrThrow(); - var biomes = this.biomeCodec.parse(NbtOps.INSTANCE, section.getCompound("biomes").get()).result().orElse(this.defaultBiomeProvider); - + var biomes = this.defaultBiomeProvider; + var optBiomes = section.getCompound("biomes"); + if (optBiomes.isPresent()) { + biomes = this.biomeCodec.parse(NbtOps.INSTANCE, optBiomes.get()).result().orElse(this.defaultBiomeProvider); + } VoxelizedSection csec = WorldConversionFactory.convert( SECTION_CACHE.get().setPosition(x, y, z), this.world.getMapper(),