Took 1 minute
This commit is contained in:
Kiran Hart 2024-06-09 11:54:12 -04:00
parent 18caf2f2f3
commit c83a7f0ee9
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3
2 changed files with 2 additions and 4 deletions

View File

@ -8,7 +8,7 @@
<name>AuctionHouse</name>
<description>The ultimate auction solution for your server</description>
<version>2.110.3</version>
<version>2.111.0</version>
<packaging>jar</packaging>
<properties>
<author>Kiran Hart</author>
@ -119,7 +119,7 @@
<dependency>
<groupId>ca.tweetzy</groupId>
<artifactId>tweetycore</artifactId>
<version>3.10.0</version>
<version>3.10.1</version>
</dependency>
<dependency>
<groupId>org.mineacademy.plugin</groupId>

View File

@ -79,12 +79,10 @@ public final class GUIAuctionHouseV2 extends AuctionUpdatingPagedGUI<AuctionedIt
protected void prePopulate() {
this.items = AuctionHouse.getInstance().getAuctionItemManager().getValidItems(this.player);
// TODO RE-IMPL search
if (this.searchKeywords != null && this.searchKeywords.length() != 0) {
this.items = this.items.stream().filter(item -> checkSearchCriteria(this.searchKeywords, item)).collect(Collectors.toList());
}
if (this.auctionPlayer != null) {
if (this.auctionPlayer.getSelectedFilter() != AuctionItemCategory.ALL && this.auctionPlayer.getSelectedFilter() != AuctionItemCategory.SEARCH && this.auctionPlayer.getSelectedFilter() != AuctionItemCategory.SELF) {
this.items = this.items.stream().filter(item -> checkFilterCriteria(item, this.auctionPlayer.getSelectedFilter())).collect(Collectors.toList());