mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
pkgmgr: Fix games list not being updated after game install
Fixes #8074
This commit is contained in:
parent
630c0ea997
commit
4b04268304
@ -505,7 +505,11 @@ function pkgmgr.install_dir(type, path, basename, targetpath)
|
||||
fgettext("Failed to install $1 to $2", basename, targetpath)
|
||||
end
|
||||
|
||||
pkgmgr.refresh_globals()
|
||||
if basefolder.type == "game" then
|
||||
pkgmgr.update_gamelist()
|
||||
else
|
||||
pkgmgr.refresh_globals()
|
||||
end
|
||||
|
||||
return targetpath, nil
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user