add null check for biome provider

This commit is contained in:
dfsek
2022-06-11 20:58:41 -07:00
parent aac16414d9
commit dbadef5672

View File

@@ -138,6 +138,9 @@ public class FabricChunkGeneratorWrapper extends net.minecraft.world.gen.chunk.C
BiomeProvider biomeProvider;
if(chunk instanceof net.minecraft.world.chunk.ProtoChunk) {
biomeProvider = ((BiomeProviderHolder) chunk).getBiomeProvider();
if(biomeProvider == null) {
biomeProvider = pack.getBiomeProvider().caching(world);
}
} else {
biomeProvider = pack.getBiomeProvider().caching(world);
}