Inline chunk getter

This commit is contained in:
TheMode 2021-07-11 22:01:21 +02:00
parent b3f78b4706
commit 722b04cbce

View File

@ -281,8 +281,7 @@ public class InstanceContainer extends Instance {
@Override
public Chunk getChunk(int chunkX, int chunkZ) {
final long index = ChunkUtils.getChunkIndex(chunkX, chunkZ);
final Chunk chunk = chunks.get(index);
return ChunkUtils.isLoaded(chunk) ? chunk : null;
return chunks.get(index);
}
/**