diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-05-19 07:25:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-19 07:25:27 +0200 |
commit | e25a38e3fbb156ae2bc72cc66aef014ae3963407 (patch) | |
tree | f7f4f7e6e823650a60f4607e07d12d6705292eef /src/script | |
parent | 1c6d2f596df8fc2254916cf323bdbaf13905aebf (diff) | |
download | minetest-e25a38e3fbb156ae2bc72cc66aef014ae3963407.tar.gz minetest-e25a38e3fbb156ae2bc72cc66aef014ae3963407.tar.bz2 minetest-e25a38e3fbb156ae2bc72cc66aef014ae3963407.zip |
When minimap is disabled in configuration, really disable it (#5771)
* When minimap is disabled in configuration, really disable it
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/scripting_client.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/script/scripting_client.cpp b/src/script/scripting_client.cpp index 24f70b8c1..da289e564 100644 --- a/src/script/scripting_client.cpp +++ b/src/script/scripting_client.cpp @@ -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"); |