summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2021-01-16 17:51:40 +0000
committerrubenwardy <rw@rubenwardy.com>2021-01-16 17:51:49 +0000
commit5e6df0e7be46afe1dbdf6406e1109a8676a22092 (patch)
treeb03f6607b98e514891af1a17ca4194255f55b875 /builtin
parent4b012828213e3086f11afb3b94ce7aab85a52f55 (diff)
downloadminetest-5e6df0e7be46afe1dbdf6406e1109a8676a22092.tar.gz
minetest-5e6df0e7be46afe1dbdf6406e1109a8676a22092.tar.bz2
minetest-5e6df0e7be46afe1dbdf6406e1109a8676a22092.zip
ContentDB: Ignore content not installed from ContentDB
Diffstat (limited to 'builtin')
-rw-r--r--builtin/mainmenu/dlg_contentstore.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/mainmenu/dlg_contentstore.lua b/builtin/mainmenu/dlg_contentstore.lua
index b5f71e753..3ad9ed28a 100644
--- a/builtin/mainmenu/dlg_contentstore.lua
+++ b/builtin/mainmenu/dlg_contentstore.lua
@@ -580,7 +580,7 @@ function store.update_paths()
local mod_hash = {}
pkgmgr.refresh_globals()
for _, mod in pairs(pkgmgr.global_mods:get_list()) do
- if mod.author then
+ if mod.author and mod.release > 0 then
mod_hash[mod.author:lower() .. "/" .. mod.name] = mod
end
end
@@ -588,14 +588,14 @@ function store.update_paths()
local game_hash = {}
pkgmgr.update_gamelist()
for _, game in pairs(pkgmgr.games) do
- if game.author ~= "" then
+ if game.author ~= "" and game.release > 0 then
game_hash[game.author:lower() .. "/" .. game.id] = game
end
end
local txp_hash = {}
for _, txp in pairs(pkgmgr.get_texture_packs()) do
- if txp.author then
+ if txp.author and txp.release > 0 then
txp_hash[txp.author:lower() .. "/" .. txp.name] = txp
end
end