if (player == NULL)
return 0;
- s32 hotbar_itemcount = getServer(L)->hudGetHotbarItemcount(player);
-
- lua_pushnumber(L, hotbar_itemcount);
+ lua_pushnumber(L, player->getHotbarItemcount());
return 1;
}
{
MutexAutoLock envlock(m_env_mutex);
-
+
infostream << "Server: Saving players" << std::endl;
m_env->saveLoadedPlayers();
return true;
}
-s32 Server::hudGetHotbarItemcount(RemotePlayer *player) const
-{
- return player->getHotbarItemcount();
-}
-
void Server::hudSetHotbarImage(RemotePlayer *player, std::string name)
{
if (!player)
bool hudChange(RemotePlayer *player, u32 id, HudElementStat stat, void *value);
bool hudSetFlags(RemotePlayer *player, u32 flags, u32 mask);
bool hudSetHotbarItemcount(RemotePlayer *player, s32 hotbar_itemcount);
- s32 hudGetHotbarItemcount(RemotePlayer *player) const;
void hudSetHotbarImage(RemotePlayer *player, std::string name);
std::string hudGetHotbarImage(RemotePlayer *player);
void hudSetHotbarSelectedImage(RemotePlayer *player, std::string name);