3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-07-01 13:18:02 +02:00

Fix scoreboard objective reading

Dieser Commit ist enthalten in:
Nassim Jahnke 2023-08-31 11:48:48 +10:00
Ursprung 3b9354c4f6
Commit c13c3f17fc

Datei anzeigen

@ -64,7 +64,7 @@ public final class Protocol1_20To1_20_2 extends BackwardsProtocol<ClientboundPac
soundRewriter.registerSound(ClientboundPackets1_20_2.ENTITY_SOUND);
soundRewriter.registerStopSound(ClientboundPackets1_20_2.STOP_SOUND);
registerClientbound(ClientboundPackets1_20_2.SCOREBOARD_OBJECTIVE, wrapper -> {
registerClientbound(ClientboundPackets1_20_2.DISPLAY_SCOREBOARD, wrapper -> {
final int slot = wrapper.read(Type.VAR_INT);
wrapper.write(Type.BYTE, (byte) slot);
});