Skip to content

Commit 22ff141

Browse files
committed
Fix serverbound container_close container types
Fixes #566
1 parent 00b74ef commit 22ff141

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common/src/main/java/com/viaversion/viarewind/protocol/v1_8to1_7_6_10/rewriter/BlockItemPacketRewriter1_8.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public void register() {
224224
});
225225

226226
protocol.registerServerbound(ServerboundPackets1_7_2_5.CONTAINER_CLOSE, wrapper -> {
227-
final short windowId = wrapper.passthrough(Types.UNSIGNED_BYTE);
227+
final byte windowId = wrapper.passthrough(Types.BYTE);
228228

229229
wrapper.user().get(InventoryTracker.class).remove(windowId);
230230
});

common/src/main/java/com/viaversion/viarewind/protocol/v1_9to1_8/rewriter/BlockItemPacketRewriter1_9.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ protected void registerPackets() {
131131
});
132132

133133
protocol.registerServerbound(ServerboundPackets1_8.CONTAINER_CLOSE, wrapper -> {
134-
final short windowId = wrapper.passthrough(Types.UNSIGNED_BYTE);
134+
final byte windowId = wrapper.passthrough(Types.BYTE);
135135
wrapper.user().get(WindowTracker.class).remove(windowId);
136136
});
137137

0 commit comments

Comments
 (0)