mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Dont announce server in singleplayer
This commit is contained in:
parent
215e37aac3
commit
e65d8ad655
2 changed files with 3 additions and 2 deletions
|
@ -1242,7 +1242,7 @@ void Server::AsyncRunStep()
|
|||
// send masterserver announce
|
||||
{
|
||||
float &counter = m_masterserver_timer;
|
||||
if((!counter || counter >= 300.0) && g_settings->getBool("server_announce") == true)
|
||||
if(!isSingleplayer() && (!counter || counter >= 300.0) && g_settings->getBool("server_announce") == true)
|
||||
{
|
||||
ServerList::sendAnnounce(!counter ? "start" : "update", m_clients_number, m_uptime.get(), m_gamespec.id, m_mods);
|
||||
counter = 0.01;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue