Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-11-17 13:30:14 +01:00
Fix reset score reading
Dieser Commit ist enthalten in:
Ursprung
3a69dda548
Commit
e24a170e77
@ -88,7 +88,9 @@ public final class Protocol1_20_2To1_20_3 extends BackwardsProtocol<ClientboundP
|
||||
registerClientbound(ClientboundPackets1_20_3.RESET_SCORE, ClientboundPackets1_20_2.UPDATE_SCORE, wrapper -> {
|
||||
wrapper.passthrough(Type.STRING); // Owner
|
||||
wrapper.write(Type.BYTE, (byte) 1); // Reset score
|
||||
wrapper.passthrough(Type.STRING); // Objective name
|
||||
|
||||
final String objectiveName = wrapper.read(Type.OPTIONAL_STRING);
|
||||
wrapper.write(Type.STRING, objectiveName != null ? objectiveName : ""); // Objective name
|
||||
});
|
||||
registerClientbound(ClientboundPackets1_20_3.UPDATE_SCORE, wrapper -> {
|
||||
wrapper.passthrough(Type.STRING); // Owner
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren