diff options
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index 30bd10198..2687d01e0 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1953,6 +1953,14 @@ void Client::setPlayerControl(PlayerControl &control) player->control = control; } +void Client::selectPlayerItem(u16 item) +{ + LocalPlayer *player = m_env.getLocalPlayer(); + assert(player != NULL); + + player->wieldItem(item); +} + // 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 Client::getLocalInventoryUpdated() |