MCCTeam / Minecraft-Console-Client

Lightweight console for Minecraft chat and automated scripts
https://mccteam.github.io
Other
1.67k stars 402 forks source link

Fix(PacketType18Handler.cs): 1.20 Packet Palette #2715

Closed oldkingOK closed 8 months ago

oldkingOK commented 8 months ago

Fix #2704

The commit Implemented 1.20.3 edited PacketType18Handler.cs

- < Protocol18Handler.MC_1_20_2_Version => new PacketPalette1194(),
- _ => new PacketPalette1202()
+ <= Protocol18Handler.MC_1_19_4_Version => new PacketPalette1194(),
+ <= Protocol18Handler.MC_1_20_2_Version => new PacketPalette1202(),
+ _ => new PacketPalette1204()

crashes the MCC at Protocol 763 (Protocol18Handler.MC_1_20_Version, 1.20 and 1.20.1) which works fine with PacketPalette1194 instead of 1202.

ReinforceZwei commented 8 months ago

Thanks!