diff options
Diffstat (limited to 'src/client/client.h')
-rw-r--r-- | src/client/client.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/client/client.h b/src/client/client.h index 527ae6524..8ee34a4bd 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -271,10 +271,6 @@ public: void setPlayerControl(PlayerControl &control); - void selectPlayerItem(u16 item); - u16 getPlayerItem() const - { return m_playeritem; } - // Returns true if the inventory of the local player has been // updated from the server. If it is true, it is set to false. bool getLocalInventoryUpdated(); @@ -285,6 +281,9 @@ public: Inventory* getInventory(const InventoryLocation &loc) override; void inventoryAction(InventoryAction *a) override; + // Send the item number 'item' as player item to the server + void setPlayerItem(u16 item); + const std::list<std::string> &getConnectedPlayerNames() { return m_env.getPlayerNames(); @@ -454,8 +453,6 @@ private: void Receive(); void sendPlayerPos(); - // Send the item number 'item' as player item to the server - void sendPlayerItem(u16 item); void deleteAuthData(); // helper method shared with clientpackethandler @@ -506,7 +503,6 @@ private: // If 0, server init hasn't been received yet. u16 m_proto_ver = 0; - u16 m_playeritem = 0; bool m_inventory_updated = false; Inventory *m_inventory_from_server = nullptr; float m_inventory_from_server_age = 0.0f; |