Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 16:12:42 +01:00
A more probable probably
Dieser Commit ist enthalten in:
Ursprung
07b173bb74
Commit
6fb27e5c17
@ -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);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren