mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
parent
b99edee642
commit
e8f51ca22b
1 changed files with 31 additions and 28 deletions
|
|
@ -629,6 +629,8 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
|
||||
Chunk chunk = new Chunk();
|
||||
|
||||
if (dataArray.Length > 0)
|
||||
{
|
||||
for (int blockY = 0; blockY < Chunk.SizeY; blockY++)
|
||||
{
|
||||
for (int blockZ = 0; blockZ < Chunk.SizeZ; blockZ++)
|
||||
|
|
@ -664,6 +666,7 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//We have our chunk, save the chunk into the world
|
||||
if (handler.GetWorld()[chunkX, chunkZ] == null)
|
||||
|
|
@ -674,8 +677,8 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
readData((Chunk.SizeX * Chunk.SizeY * Chunk.SizeZ) / 2, cache);
|
||||
|
||||
//Skip sky light
|
||||
if (this.currentDimension != -1)
|
||||
// Sky light is not sent in the nether
|
||||
if (this.currentDimension == 0)
|
||||
// Sky light is not sent in the nether or the end
|
||||
readData((Chunk.SizeX * Chunk.SizeY * Chunk.SizeZ) / 2, cache);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue