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

When minimap is disabled in configuration, really disable it (#5771)

* When minimap is disabled in configuration, really disable it
This commit is contained in:
Loïc Blot 2017-05-19 07:25:27 +02:00 committed by GitHub
parent 1c6d2f596d
commit e25a38e3fb
7 changed files with 28 additions and 19 deletions

View file

@ -51,7 +51,8 @@ ClientScripting::ClientScripting(Client *client):
InitializeModApi(L, top);
lua_pop(L, 1);
LuaMinimap::create(L, client->getMinimap());
if (client->getMinimap())
LuaMinimap::create(L, client->getMinimap());
// Push builtin initialization type
lua_pushstring(L, "client");