diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-08-10 21:43:40 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-08-11 15:22:36 +0200 |
commit | ecd5c5f9206437c320da029680cf1d053b644761 (patch) | |
tree | fd8c439dc142aa2ae9e87ec75dfcf71c8c12f868 /src/client.h | |
parent | 91d1186cbb0e651de919e17e6808c75c20a0ef6f (diff) | |
download | minetest-ecd5c5f9206437c320da029680cf1d053b644761.tar.gz minetest-ecd5c5f9206437c320da029680cf1d053b644761.tar.bz2 minetest-ecd5c5f9206437c320da029680cf1d053b644761.zip |
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.
Diffstat (limited to 'src/client.h')
-rw-r--r-- | src/client.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client.h b/src/client.h index d21764f75..963eb6702 100644 --- a/src/client.h +++ b/src/client.h @@ -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; |