Skip to content

Commit 3f6c172

Browse files
committed
Fix player rotation in 1.21.2->1.21.2
Fixes ViaVersion/ViaVersion#4380
1 parent 9e7fad2 commit 3f6c172

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_2to1_21/rewriter/EntityPacketRewriter1_21_2.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ public void register() {
193193
});
194194

195195
protocol.registerClientbound(ClientboundPackets1_21_2.PLAYER_ROTATION, ClientboundPackets1_21.PLAYER_LOOK_AT, wrapper -> {
196-
final float yaw = wrapper.passthrough(Types.FLOAT);
197-
final float pitch = wrapper.passthrough(Types.FLOAT);
196+
final float yaw = wrapper.read(Types.FLOAT);
197+
final float pitch = wrapper.read(Types.FLOAT);
198198

199199
final double yRadians = Math.toRadians(yaw);
200200
final double xRadians = Math.toRadians(pitch);

0 commit comments

Comments
 (0)