1
0
mirror of https://github.com/p2r3/bareiron.git synced 2025-10-02 07:35:08 +02:00

sync hotbar slot on login

This commit is contained in:
p2r3
2025-08-12 04:04:41 +03:00
parent 269e8346eb
commit d933ec77ac
3 changed files with 13 additions and 0 deletions

View File

@@ -545,6 +545,17 @@ int cs_setHeldItem (int client_fd) {
return 0;
}
// S->C Set Held Item (clientbound)
int sc_setHeldItem (int client_fd, uint8_t slot) {
writeVarInt(client_fd, sizeVarInt(0x62) + 1);
writeVarInt(client_fd, 0x62);
writeByte(client_fd, slot);
return 0;
}
// S->C Registry Data (Multiple packets)
int sc_registries (int client_fd) {