mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Improve ReadBlockStatesField
This commit is contained in:
parent
64915c87cf
commit
5f520e2cf4
3 changed files with 20 additions and 22 deletions
|
|
@ -118,10 +118,9 @@ namespace MinecraftClient.Mapping
|
|||
/// <param name="chunkColumnSize">ChunkColumn size</param>
|
||||
/// <param name="chunk">Chunk data</param>
|
||||
/// <param name="loadCompleted">Whether the ChunkColumn has been fully loaded</param>
|
||||
public void StoreChunk(int chunkX, int chunkY, int chunkZ, int chunkColumnSize, Chunk chunk, bool loadCompleted)
|
||||
public void StoreChunk(int chunkX, int chunkY, int chunkZ, int chunkColumnSize, Chunk? chunk, bool loadCompleted)
|
||||
{
|
||||
ChunkColumn? chunkColumn = null;
|
||||
|
||||
chunksLock.EnterUpgradeableReadLock();
|
||||
try
|
||||
{
|
||||
|
|
@ -151,7 +150,6 @@ namespace MinecraftClient.Mapping
|
|||
{
|
||||
chunksLock.ExitUpgradeableReadLock();
|
||||
}
|
||||
|
||||
chunkColumn[chunkY] = chunk;
|
||||
if (loadCompleted)
|
||||
chunkColumn.FullyLoaded = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue