A more probable probably

This commit is contained in:
Nassim Jahnke 2023-11-19 16:18:56 +01:00
parent 07b173bb74
commit 6fb27e5c17
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F
1 changed files with 5 additions and 5 deletions

View File

@ -112,13 +112,13 @@ public final class Protocol1_20_3To1_20_2 extends AbstractProtocol<ClientboundPa
final byte action = wrapper.read(Type.BYTE);
wrapper.passthrough(Type.STRING); // Objective name
// Write or pass through value
if (action != -1) {
wrapper.passthrough(Type.VAR_INT);
} else {
wrapper.write(Type.VAR_INT, 0);
if (action == 1) { // Reset score
wrapper.setPacketType(ClientboundPackets1_20_3.RESET_SCORE);
return;
}
wrapper.passthrough(Type.VAR_INT); // Score
// Null display and number format
wrapper.write(Type.OPTIONAL_TAG, null);
wrapper.write(Type.BOOLEAN, false);