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:
parent
aa3cf400e2
commit
f105bc8dc2
4 changed files with 18 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue