mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-17 19:35:00 -04:00
networking: fix chunk reading in 1.16 (2)
This commit is contained in:
parent
6189c141ef
commit
11ffdf0bd8
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user