networking: fix chunk reading in 1.16 (2)

This commit is contained in:
Bixilon 2021-02-08 14:06:28 +01:00
parent 6189c141ef
commit 11ffdf0bd8
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -164,7 +164,7 @@ public final class ChunkUtil {
int startOffset;
int endLong;
if (buffer.getVersionId() < V_20W49A) { // ToDo: When did this changed? is just a guess
if (buffer.getVersionId() < V_1_16) { // ToDo: When did this changed? is just a guess
startLong = (blockNumber * palette.getBitsPerBlock()) / 64;
startOffset = (blockNumber * palette.getBitsPerBlock()) % 64;
endLong = ((blockNumber + 1) * palette.getBitsPerBlock() - 1) / 64;