Skip to content

Commit c7e638f

Browse files
Fix 1.8->1.9 window items translation
1 parent a4b445c commit c7e638f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common/src/main/java/com/viaversion/viarewind/protocol/protocol1_8to1_9/packets/BlockItemPackets1_9.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ protected void registerPackets() {
8787
protocol.registerClientbound(ClientboundPackets1_9.WINDOW_ITEMS, wrapper -> {
8888
final short windowId = wrapper.passthrough(Type.UNSIGNED_BYTE);
8989

90-
Item[] items = wrapper.passthrough(Type.ITEM1_8_SHORT_ARRAY);
90+
Item[] items = wrapper.read(Type.ITEM1_8_SHORT_ARRAY);
9191
for (int i = 0; i < items.length; i++) {
9292
items[i] = handleItemToClient(wrapper.user(), items[i]);
9393
}
@@ -107,6 +107,8 @@ protected void registerPackets() {
107107
System.arraycopy(old, 5, items, 4, old.length - 5);
108108
}
109109
}
110+
111+
wrapper.write(Type.ITEM1_8_SHORT_ARRAY, items);
110112
});
111113

112114
protocol.registerClientbound(ClientboundPackets1_9.SET_SLOT, wrapper -> {

0 commit comments

Comments
 (0)