mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Display which tool the player is holding
And some simple animation when trying to dig...
This commit is contained in:
parent
5c1074aa7d
commit
f31b0a3361
6 changed files with 137 additions and 30 deletions
|
@ -2008,6 +2008,14 @@ v3f Client::getPlayerPosition(v3f *eye_position)
|
|||
return player->getPosition();
|
||||
}
|
||||
|
||||
void Client::setPlayerWield(scene::ISceneNode *wield)
|
||||
{
|
||||
//JMutexAutoLock envlock(m_env_mutex); //bulk comment-out
|
||||
LocalPlayer *player = m_env.getLocalPlayer();
|
||||
assert(player != NULL);
|
||||
player->wield = wield;
|
||||
}
|
||||
|
||||
void Client::setPlayerControl(PlayerControl &control)
|
||||
{
|
||||
//JMutexAutoLock envlock(m_env_mutex); //bulk comment-out
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue