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

@ -318,6 +318,8 @@ private:
void sendPlayerPos();
// This sends the player's current name etc to the server
void sendPlayerInfo();
// Send the item number 'item' as player item to the server
void sendPlayerItem(u16 item);
float m_packetcounter_timer;
float m_connection_reinit_timer;