From a81259d19a434752614e5a430fdebf86f07c1cfc Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Tue, 2 Aug 2022 21:34:17 +0200 Subject: 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 Co-authored-by: sfan5 --- src/script/lua_api/l_util.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/script/lua_api') 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; } -- cgit v1.2.3