Fix scoreboard objective reading

This commit is contained in:
Nassim Jahnke 2023-08-31 11:48:48 +10:00
parent 3b9354c4f6
commit c13c3f17fc

View File

@ -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);
});