mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-25 11:35:18 +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);
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user