From a3909901789e0e1a7fae01be8e8bb4c42be243c6 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Wed, 13 Dec 2023 12:04:43 +0100 Subject: [PATCH] Read correct method type in update score Fixes #650 --- .../protocol1_20_2to1_20_3/Protocol1_20_2To1_20_3.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20_2to1_20_3/Protocol1_20_2To1_20_3.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20_2to1_20_3/Protocol1_20_2To1_20_3.java index 7afe1cba..b6f50407 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20_2to1_20_3/Protocol1_20_2To1_20_3.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20_2to1_20_3/Protocol1_20_2To1_20_3.java @@ -91,14 +91,14 @@ public final class Protocol1_20_2To1_20_3 extends BackwardsProtocol { wrapper.passthrough(Type.STRING); // Owner - wrapper.write(Type.BYTE, (byte) 1); // Reset score + wrapper.write(Type.VAR_INT, 1); // Reset score final String objectiveName = wrapper.read(Type.OPTIONAL_STRING); wrapper.write(Type.STRING, objectiveName != null ? objectiveName : ""); // Objective name }); registerClientbound(ClientboundPackets1_20_3.UPDATE_SCORE, wrapper -> { wrapper.passthrough(Type.STRING); // Owner - wrapper.write(Type.BYTE, (byte) 0); // Change score + wrapper.write(Type.VAR_INT, 0); // Change score wrapper.passthrough(Type.STRING); // Objective name wrapper.passthrough(Type.VAR_INT); // Score