diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2022-08-02 21:34:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-02 21:34:17 +0200 |
commit | a81259d19a434752614e5a430fdebf86f07c1cfc (patch) | |
tree | fcb83c0aa14c645c0050d683b54131bc598556f3 /src/script/lua_api/l_util.cpp | |
parent | f22d40975e907d9f0e84b67b21256953333a6cc8 (diff) | |
download | minetest-a81259d19a434752614e5a430fdebf86f07c1cfc.tar.gz minetest-a81259d19a434752614e5a430fdebf86f07c1cfc.tar.bz2 minetest-a81259d19a434752614e5a430fdebf86f07c1cfc.zip |
Run Minetest update checker on startup (#7629)
This feature is enabled by default for non-Android release builds. Package
maintainers may use -DENABLE_UPDATE_CHECKER=0 to disable it.
Co-authored-by: rubenwardy <rw@rubenwardy.com>
Co-authored-by: sfan5 <sfan5@live.de>
Diffstat (limited to 'src/script/lua_api/l_util.cpp')
-rw-r--r-- | src/script/lua_api/l_util.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/lua_api/l_util.cpp b/src/script/lua_api/l_util.cpp index 47a68ad75..f602aed99 100644 --- a/src/script/lua_api/l_util.cpp +++ b/src/script/lua_api/l_util.cpp @@ -480,6 +480,8 @@ int ModApiUtil::l_get_version(lua_State *L) lua_setfield(L, table, "hash"); } + lua_pushboolean(L, DEVELOPMENT_BUILD); + lua_setfield(L, table, "is_dev"); return 1; } |