additional filter check, if the currently selected filter is now disabled, update their filter to ALL

Took 2 minutes
This commit is contained in:
Kiran Hart 2022-10-18 14:35:31 -04:00
parent b3aa3d4e06
commit 1c2b39fc41
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3

View File

@ -58,8 +58,11 @@ public class AuctionPlayerManager {
if (!Settings.ALLOW_USAGE_OF_BID_SYSTEM.getBoolean())
found.setSelectedSaleType(AuctionSaleType.BOTH);
// if the player's current filter is disabled, set it to all
if (!found.getSelectedFilter().isEnabled())
found.setSelectedFilter(AuctionItemCategory.ALL);
if (AuctionItemCategory.isAllButAllDisabled())
if (found.getSelectedFilter() != AuctionItemCategory.ALL && AuctionItemCategory.isAllButAllDisabled())
found.setSelectedFilter(AuctionItemCategory.ALL);
if (!Settings.DISABLE_PROFILE_UPDATE_MSG.getBoolean())