Skip to content

Commit 9ecdaa3

Browse files
committed
Use unsigned byte for facing direction in player action
1 parent ee69005 commit 9ecdaa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public void register() {
211211
final PacketWrapper swapItems = PacketWrapper.create(ServerboundPackets1_9.PLAYER_ACTION, wrapper.user());
212212
swapItems.write(Types.VAR_INT, 6);
213213
swapItems.write(Types.BLOCK_POSITION1_8, new BlockPosition(0, 0, 0));
214-
swapItems.write(Types.BYTE, (byte) 255);
214+
swapItems.write(Types.UNSIGNED_BYTE, (short) 255);
215215

216216
swapItems.sendToServer(Protocol1_9To1_8.class);
217217
}

0 commit comments

Comments
 (0)