mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 17:15:21 +02:00
Cleanup: drop Server::hudGetHotbarItemcount()
Call directly accessible RemotePlayer::getHotbarItemcount() from server api
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user