mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Cleanup: drop Server::hudGetHotbarItemcount()
Call directly accessible RemotePlayer::getHotbarItemcount() from server api
This commit is contained in:
parent
f35236afea
commit
373f1bfb4a
3 changed files with 2 additions and 10 deletions
|
@ -317,7 +317,7 @@ Server::~Server()
|
|||
|
||||
{
|
||||
MutexAutoLock envlock(m_env_mutex);
|
||||
|
||||
|
||||
infostream << "Server: Saving players" << std::endl;
|
||||
m_env->saveLoadedPlayers();
|
||||
|
||||
|
@ -3090,11 +3090,6 @@ bool Server::hudSetHotbarItemcount(RemotePlayer *player, s32 hotbar_itemcount)
|
|||
return true;
|
||||
}
|
||||
|
||||
s32 Server::hudGetHotbarItemcount(RemotePlayer *player) const
|
||||
{
|
||||
return player->getHotbarItemcount();
|
||||
}
|
||||
|
||||
void Server::hudSetHotbarImage(RemotePlayer *player, std::string name)
|
||||
{
|
||||
if (!player)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue