Skip to content

Commit 10918a2

Browse files
Add writeInts method to writeBulkIndices
1 parent f925839 commit 10918a2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/com/github/steveice10/mc/classic/protocol/packet/ClassicPacketUtil.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public static int[] readBulkIndices(NetInput in, int len) throws IOException {
7373
public static void writeBulkIndices(NetOutput out, int[] i) throws IOException {
7474
int[] data = new int[256];
7575
System.arraycopy(i, 0, data, 0, Math.min(i.length, data.length));
76+
out.writeInts(data);
7677
}
7778

7879
public static byte[] readBulkBlocks(NetInput in, int len) throws IOException {

0 commit comments

Comments
 (0)