From 043975cc47ec57cc46481308bd3438fae6353e2f Mon Sep 17 00:00:00 2001 From: Kiran Hart Date: Fri, 11 Aug 2023 09:53:16 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20fixed=20transaction=20l?= =?UTF-8?q?ist=20not=20filtering=20properly=20until=20you=20click=20refres?= =?UTF-8?q?h?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Took 1 minute --- .../auctionhouse/guis/transaction/GUITransactionList.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/ca/tweetzy/auctionhouse/guis/transaction/GUITransactionList.java b/src/main/java/ca/tweetzy/auctionhouse/guis/transaction/GUITransactionList.java index 05daf5e..fc9330e 100644 --- a/src/main/java/ca/tweetzy/auctionhouse/guis/transaction/GUITransactionList.java +++ b/src/main/java/ca/tweetzy/auctionhouse/guis/transaction/GUITransactionList.java @@ -148,7 +148,7 @@ public class GUITransactionList extends AbstractPlaceholderGui { if (click.clickType == ClickType.valueOf(Settings.CLICKS_FILTER_CATEGORY.getString().toUpperCase())) { this.auctionPlayer.setSelectedTransactionFilter(this.auctionPlayer.getSelectedTransactionFilter().next()); - draw(); + click.manager.showGUI(click.player, new GUITransactionList(click.player, this.showAll)); } @@ -162,14 +162,14 @@ public class GUITransactionList extends AbstractPlaceholderGui { if (click.clickType == ClickType.valueOf(Settings.CLICKS_FILTER_SORT_SALE_TYPE.getString().toUpperCase())) { if (Settings.ALLOW_USAGE_OF_BID_SYSTEM.getBoolean()) { this.auctionPlayer.setSelectedTransactionSaleType(this.auctionPlayer.getSelectedTransactionSaleType().next()); - draw(); + click.manager.showGUI(click.player, new GUITransactionList(click.player, this.showAll)); } return; } if (click.clickType == ClickType.valueOf(Settings.CLICKS_FILTER_SORT_PRICE_OR_RECENT.getString().toUpperCase())) { this.auctionPlayer.setTransactionSortType(this.auctionPlayer.getTransactionSortType().next()); - draw(); + click.manager.showGUI(click.player, new GUITransactionList(click.player, this.showAll)); } }); }