mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-03 23:17:48 +01:00
chunkSupplier needs to give non-null chunks
This commit is contained in:
parent
3c2805790a
commit
1712ebd151
@ -525,6 +525,7 @@ public class InstanceContainer extends Instance {
|
||||
}
|
||||
|
||||
final Chunk chunk = chunkSupplier.getChunk(this, biomes, chunkX, chunkZ);
|
||||
Check.notNull(chunk, "Chunks supplied by a ChunkSupplier cannot be null.");
|
||||
|
||||
cacheChunk(chunk);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user