mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Optimize ClientIface::getPlayerNames(): return const ref instead a copy of all names
This commit is contained in:
@@ -627,12 +627,6 @@ std::vector<u16> ClientInterface::getClientIDs(ClientState min_state)
|
||||
return reply;
|
||||
}
|
||||
|
||||
std::vector<std::string> ClientInterface::getPlayerNames()
|
||||
{
|
||||
return m_clients_names;
|
||||
}
|
||||
|
||||
|
||||
void ClientInterface::step(float dtime)
|
||||
{
|
||||
m_print_info_timer += dtime;
|
||||
|
Reference in New Issue
Block a user