mirror of
https://github.com/kiranhart/Auction-House.git
synced 2024-11-22 05:25:11 +01:00
💨 Fixed bug when force custom bid amount is enabled, clicking to bid on an item would essentially just do nothing
Took 34 seconds
This commit is contained in:
parent
fc6574efb9
commit
0023205147
@ -583,7 +583,6 @@ public class DataManager extends DataManagerAbstract {
|
|||||||
public void updateAuctionPlayer(@NonNull final AuctionPlayer auctionPlayer, Callback<Boolean> callback) {
|
public void updateAuctionPlayer(@NonNull final AuctionPlayer auctionPlayer, Callback<Boolean> callback) {
|
||||||
this.thread.execute(() -> this.databaseConnector.connect(connection -> {
|
this.thread.execute(() -> this.databaseConnector.connect(connection -> {
|
||||||
try (PreparedStatement statement = connection.prepareStatement("UPDATE " + this.getTablePrefix() + "player SET filter_sale_type = ?, filter_item_category = ?, filter_sort_type = ?, last_listed_item = ? WHERE uuid = ?")) {
|
try (PreparedStatement statement = connection.prepareStatement("UPDATE " + this.getTablePrefix() + "player SET filter_sale_type = ?, filter_item_category = ?, filter_sort_type = ?, last_listed_item = ? WHERE uuid = ?")) {
|
||||||
|
|
||||||
statement.setString(1, auctionPlayer.getSelectedSaleType().name());
|
statement.setString(1, auctionPlayer.getSelectedSaleType().name());
|
||||||
statement.setString(2, auctionPlayer.getSelectedFilter().name());
|
statement.setString(2, auctionPlayer.getSelectedFilter().name());
|
||||||
statement.setString(3, auctionPlayer.getAuctionSortType().name());
|
statement.setString(3, auctionPlayer.getAuctionSortType().name());
|
||||||
|
@ -305,6 +305,7 @@ public class GUIAuctionHouse extends AbstractPlaceholderGui {
|
|||||||
|
|
||||||
if (Settings.PLAYER_NEEDS_TOTAL_PRICE_TO_BID.getBoolean() && !EconomyManager.hasBalance(e.player, newBiddingAmount)) {
|
if (Settings.PLAYER_NEEDS_TOTAL_PRICE_TO_BID.getBoolean() && !EconomyManager.hasBalance(e.player, newBiddingAmount)) {
|
||||||
AuctionHouse.getInstance().getLocale().getMessage("general.notenoughmoney").sendPrefixedMessage(e.player);
|
AuctionHouse.getInstance().getLocale().getMessage("general.notenoughmoney").sendPrefixedMessage(e.player);
|
||||||
|
AuctionHouse.getInstance().getGuiManager().showGUI(player, new GUIAuctionHouse(GUIAuctionHouse.this.auctionPlayer));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -388,6 +389,8 @@ public class GUIAuctionHouse extends AbstractPlaceholderGui {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
e.manager.showGUI(e.player, new GUIBid(this.auctionPlayer, auctionItem));
|
e.manager.showGUI(e.player, new GUIBid(this.auctionPlayer, auctionItem));
|
||||||
|
Loading…
Reference in New Issue
Block a user