fix default biomes on no biome section data biome
This commit is contained in:
@@ -485,8 +485,11 @@ public class WorldImporter implements IDataImporter {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var blockStates = blockStatesRes.getPartialOrThrow();
|
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(
|
VoxelizedSection csec = WorldConversionFactory.convert(
|
||||||
SECTION_CACHE.get().setPosition(x, y, z),
|
SECTION_CACHE.get().setPosition(x, y, z),
|
||||||
this.world.getMapper(),
|
this.world.getMapper(),
|
||||||
|
|||||||
Reference in New Issue
Block a user