fix: serialize metadata
This commit is contained in:
@@ -56,7 +56,7 @@ public class ChunkDataPacket implements SCPacket {
|
||||
if ((idx[1] % 2) > 0) {
|
||||
int i = (int) ((((idx[1]++) + 1) / 2d) - 1d);
|
||||
byte b = chunkData.get(offset+i);
|
||||
b = (byte)((b << 4) | (byte)chunk.getBlockMetadata(x, y, z));
|
||||
b = (byte)((chunk.getBlockMetadata(x, y, z) << 4) | b);
|
||||
chunkData.put(offset+i, b);
|
||||
} else {
|
||||
int i = (int) ((((idx[1]++) + 1) / 2d) - .5d);
|
||||
|
||||
Reference in New Issue
Block a user