3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-10-05 01:31:05 +02:00

A more probable probably

Dieser Commit ist enthalten in:
Nassim Jahnke 2023-11-19 16:18:56 +01:00
Ursprung 07b173bb74
Commit 6fb27e5c17
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: EF6771C01F6EF02F

Datei anzeigen

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