This commit is contained in:
Eoghanmc22 2020-08-15 10:08:54 -04:00
parent 4843440391
commit 1094fd4931

View File

@ -437,7 +437,7 @@ public class InstanceContainer extends Instance {
chunkGenerator.fillBiomes(biomes, chunkX, chunkZ);
}
Function<BlockPosition, Short> chunkSuppler = chunkDecider.apply(chunkX, chunkZ);
Function<BlockPosition, Short> chunkSuppler = chunkDecider != null ? chunkDecider.apply(chunkX, chunkZ) : null;
final Chunk chunk = chunkSuppler == null ? new DynamicChunk(biomes, chunkX, chunkZ) : new StaticChunk(biomes, chunkX, chunkZ, chunkSuppler) ;
cacheChunk(chunk);