1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

A few initialization cleanups

This commit is contained in:
sfan5 2020-04-10 21:45:07 +02:00 committed by Loïc Blot
parent aa3cf400e2
commit f105bc8dc2
4 changed files with 18 additions and 6 deletions

View file

@ -1407,8 +1407,11 @@ bool Game::createClient(const std::string &playername,
}
mapper = client->getMinimap();
if (mapper)
if (mapper) {
mapper->setMinimapMode(MINIMAP_MODE_OFF);
if (client->modsLoaded())
client->getScript()->on_minimap_ready(mapper);
}
return true;
}