mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-29 05:26:23 +01:00
A more probable probably
This commit is contained in:
parent
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);
|
||||
|
Loading…
Reference in New Issue
Block a user