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:
@@ -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) {
|
||||
|
||||
|
Reference in New Issue
Block a user