Move to first page when searching

This commit is contained in:
Bruno Rybársky 2024-08-21 14:40:48 +02:00
parent 07bb98c363
commit a5dfcd4635
5 changed files with 5 additions and 1 deletions

@ -6,7 +6,7 @@ minecraft_version=1.21.1
yarn_mappings=1.21.1+build.3
loader_version=0.16.2
# Mod Properties
mod_version=1.4.1
mod_version=1.4.2
maven_group=systems.brn
archives_base_name=servershop
# Dependencies

@ -46,6 +46,7 @@ public class AuctionBrowserScreen extends PagedGui implements SearchableInterfac
public void doSearch(String query) {
searchQuery = query;
page = 0;
updateDisplay();
}

@ -50,6 +50,7 @@ public class BalanceScreen extends PagedGui implements SearchableInterface {
public void doSearch(String query) {
searchQuery = query;
page = 0;
updateDisplay();
}

@ -59,6 +59,7 @@ public class ShopEditorScreen extends PagedGui implements SearchableInterface {
public void doSearch(String query) {
searchQuery = query;
page = 0;
updateDisplay();
}

@ -48,6 +48,7 @@ public class ShopScreen extends PagedGui implements SearchableInterface {
public void doSearch(String query) {
searchQuery = query;
page = 0;
updateDisplay();
}