fix one bug with bid menu

This commit is contained in:
Ryder Belserion 2024-10-31 21:16:06 -04:00
parent 2c6c8af68f
commit e6d22beb42
No known key found for this signature in database

View File

@ -51,9 +51,7 @@ public class BidMenu extends Holder {
@Override
public final Holder build() {
final UUID uuid = this.player.getUniqueId();
if (!this.data.contains("active_auctions." + uuid + "." + this.id)) {
if (!this.data.contains("active_auctions." + this.auction.getUuid() + "." + this.id)) {
GuiManager.openShop(this.player, ShopType.BID, HolderManager.getShopCategory(this.player), 1);
this.player.sendMessage(Messages.ITEM_DOESNT_EXIST.getMessage(this.player));
@ -181,7 +179,7 @@ public class BidMenu extends Holder {
return;
}
this.userManager.addActiveAuction(auction.getUuid().toString(), section);
this.userManager.addActiveAuction(uuid, section);
player.closeInventory();
bidMenu.click(player);