1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Clients inform server on wielded item

This is done with the new TOSERVER_PLAYERITEM message, that informs the
server on the index of the wielded item.
This commit is contained in:
Giuseppe Bilotta 2011-08-10 21:43:40 +02:00
parent 91d1186cbb
commit ecd5c5f920
4 changed files with 42 additions and 0 deletions

View file

@ -301,6 +301,14 @@ enum ToServerCommand
[30] u8[28] new password
*/
TOSERVER_PLAYERITEM=0x37,
/*
Sent to change selected item.
[0] u16 TOSERVER_PLAYERITEM
[2] u16 item
*/
};
inline SharedBuffer<u8> makePacket_TOCLIENT_TIME_OF_DAY(u16 time)