Skip to content

Commit da022a0

Browse files
[ci skip] Fix ItemRewriter#registerContainerClick1_21_5 data order (ViaVersion#4435)
1 parent 3beddaf commit da022a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/com/viaversion/viaversion/rewriter/ItemRewriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,12 @@ public void registerContainerClick1_21_5(S packetType) {
255255
wrapper.passthrough(Types.SHORT); // Slot
256256
wrapper.passthrough(Types.BYTE); // Button
257257
wrapper.passthrough(Types.VAR_INT); // Mode
258-
passthroughHashedItem(wrapper); // Carried item
259258
final int affectedItems = Limit.max(wrapper.passthrough(Types.VAR_INT), 128);
260259
for (int i = 0; i < affectedItems; i++) {
261260
wrapper.passthrough(Types.SHORT); // Slot
262261
passthroughHashedItem(wrapper);
263262
}
263+
passthroughHashedItem(wrapper); // Carried item
264264
});
265265
}
266266

0 commit comments

Comments
 (0)