mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-28 11:45:29 +01: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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user