mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-01 05:58:00 +01:00
Fix npe
This commit is contained in:
parent
4843440391
commit
1094fd4931
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user