forked from Mirrorlandia_minetest/minetest
Content store: Fix assertion failed on unsuccessful package list fetch
Fixes #8168
This commit is contained in:
parent
0d0875fc00
commit
5b965e08bd
@ -15,7 +15,7 @@
|
|||||||
--with this program; if not, write to the Free Software Foundation, Inc.,
|
--with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
local store = {}
|
local store = { packages = {}, packages_full = {} }
|
||||||
local package_dialog = {}
|
local package_dialog = {}
|
||||||
|
|
||||||
-- Screenshot
|
-- Screenshot
|
||||||
@ -396,8 +396,6 @@ function store.filter_packages(query)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function store.get_formspec()
|
function store.get_formspec()
|
||||||
assert(store.loaded)
|
|
||||||
|
|
||||||
store.update_paths()
|
store.update_paths()
|
||||||
|
|
||||||
local pages = math.ceil(#store.packages / num_per_page)
|
local pages = math.ceil(#store.packages / num_per_page)
|
||||||
|
Loading…
Reference in New Issue
Block a user