mirror of
https://github.com/GTNewHorizons/FindIt.git
synced 2026-11-24 18:24:21 +00:00
Fix incorrect block highlights with Cubic Chunks (#38)
This commit is contained in:
1 parent
f2b4c1a262
commit
3b6d5fa3ad
1 file changed
+2
-2
@@ -16,7 +16,7 @@ public class ProtoUtils {
|
||||
buf.writeInt(positions.size());
|
||||
for (ChunkPosition pos : positions) {
|
||||
buf.writeInt(pos.chunkPosX);
|
||||
buf.writeByte(pos.chunkPosY);
|
||||
buf.writeInt(pos.chunkPosY);
|
||||
buf.writeInt(pos.chunkPosZ);
|
||||
}
|
||||
}
|
||||
@@ -35,7 +35,7 @@ public class ProtoUtils {
|
||||
List<ChunkPosition> positions = new ArrayList<>();
|
||||
while (amount > 0) {
|
||||
final int x = buf.readInt();
|
||||
final int y = buf.readUnsignedByte();
|
||||
final int y = buf.readInt();
|
||||
final int z = buf.readInt();
|
||||
positions.add(new ChunkPosition(x, y, z));
|
||||
--amount;
|
||||
|
||||
Reference in new issue
Block a user