MCCTeam / Minecraft-Console-Client

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

OnSpawnPlayer not called on 1.20.2 and newer #2721

Open mfritz2008 opened 7 months ago

mfritz2008 commented 7 months ago

It seems like McClient::OnSpawnPlayer is not being called when connected to servers newer than 1.20.1. Upon further investigation it appears that the SpawnPlayer packet was removed from the protocol in 1.20.2.

See: https://wiki.vg/index.php?title=Protocol&oldid=18389

I'm not familiar enough with Minecraft development to figure out a fix. So please take some time to look into this.

Thanks in advance!