1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-10 11:55:27 +01:00

Minor cleanups and logging changes

This commit is contained in:
sfan5
2025-07-14 22:42:59 +02:00
parent 77dd86a79c
commit 3cb8ce69d2
8 changed files with 37 additions and 41 deletions

View File

@@ -709,8 +709,8 @@ void ClientInterface::step(float dtime)
try {
Address addr = m_con->GetPeerAddress(it.second->peer_id);
os << "Disconnecting lingering client from "
<< addr.serializeString() << " (state="
<< state2Name(state) << ")" << std::endl;
<< addr.serializeString() << " peer_id=" << it.second->peer_id
<< " (" << state2Name(state) << ")" << std::endl;
m_con->DisconnectPeer(it.second->peer_id);
} catch (con::PeerNotFoundException &e) {
}
@@ -739,6 +739,7 @@ void ClientInterface::UpdatePlayerList()
RemoteClient* client = lockedGetClientNoEx(i);
if (client)
client->PrintInfo(infostream);
infostream << std::endl;
}
m_clients_names.emplace_back(player->getName());