diff options
author | rubenwardy <rw@rubenwardy.com> | 2020-05-24 14:46:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-24 14:46:50 +0100 |
commit | b3c79906d4b63a2a1a296b6aad6657e86619b300 (patch) | |
tree | 8613a7dd0bf1969e2bfe78b97dbed688eff4b1c3 | |
parent | 6456aba73f0ef3f2fa7fd2b2a69cfdf8624afe23 (diff) | |
download | minetest-b3c79906d4b63a2a1a296b6aad6657e86619b300.tar.gz minetest-b3c79906d4b63a2a1a296b6aad6657e86619b300.tar.bz2 minetest-b3c79906d4b63a2a1a296b6aad6657e86619b300.zip |
Add engine version string to ContentDB API request (#9890)
-rw-r--r-- | builtin/mainmenu/dlg_contentstore.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/builtin/mainmenu/dlg_contentstore.lua b/builtin/mainmenu/dlg_contentstore.lua index ce5c061c6..3f01d4474 100644 --- a/builtin/mainmenu/dlg_contentstore.lua +++ b/builtin/mainmenu/dlg_contentstore.lua @@ -198,10 +198,11 @@ function store.load() assert(core.create_dir(tmpdir)) - local base_url = core.settings:get("contentdb_url") + local version = core.get_version() + local base_url = core.settings:get("contentdb_url") local url = base_url .. "/api/packages/?type=mod&type=game&type=txp&protocol_version=" .. - core.get_max_supp_proto() + core.get_max_supp_proto() .. "&engine_version=" .. version.string for _, item in pairs(core.settings:get("contentdb_flag_blacklist"):split(",")) do item = item:trim() |