mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2024-11-21 11:45:11 +01:00
fix one bug with bid menu
This commit is contained in:
parent
2c6c8af68f
commit
e6d22beb42
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user