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