1
0
mirror of https://github.com/minetest/minetest.git synced 2024-09-27 15:00:30 +02:00

Fix ContentDB page not being reset when changing type

Fixes #13362
This commit is contained in:
rubenwardy 2023-04-14 20:34:03 +01:00
parent c5fb50298a
commit b89077187b

View File

@ -955,6 +955,7 @@ function store.handle_submit(this, fields)
local new_type = table.indexof(filter_types_titles, fields.type) local new_type = table.indexof(filter_types_titles, fields.type)
if new_type ~= filter_type then if new_type ~= filter_type then
filter_type = new_type filter_type = new_type
cur_page = 1
store.filter_packages(search_string) store.filter_packages(search_string)
return true return true
end end