TryFix crash for 1.7 chunk data

See #217
This commit is contained in:
ORelio 2016-11-19 16:23:35 +01:00
parent 609b939159
commit 4b2fd4ccb1

View file

@ -309,7 +309,7 @@ namespace MinecraftClient.Protocol.Handlers
int compressedDataSize = readNextInt(packetData); int compressedDataSize = readNextInt(packetData);
byte[] compressed = readData(compressedDataSize, packetData); byte[] compressed = readData(compressedDataSize, packetData);
byte[] decompressed = ZlibUtils.Decompress(compressed); byte[] decompressed = ZlibUtils.Decompress(compressed);
ProcessChunkColumnData(chunkX, chunkZ, chunkMask, addBitmap, true, chunksContinuous, new List<byte>(decompressed)); ProcessChunkColumnData(chunkX, chunkZ, chunkMask, addBitmap, currentDimension == 0, chunksContinuous, new List<byte>(decompressed));
} }
else else
{ {