Fix Gem Booster display bug

This commit is contained in:
Shaun Bennett 2014-09-24 21:59:25 -05:00
parent 969c7c0fde
commit 57487e78cf

View File

@ -112,8 +112,11 @@ public class Menu extends ShopPageBase<CosmeticManager, CosmeticShop>
final GemBooster gemBoosterItem = new GemBooster(Shop.getBoosterEnabled(), Plugin.getInventoryManager().Get(Player).getItemCount("Gem Booster"));
AddButton(6, new ShopItem(
if (DonationManager.Get(Player.getName()).GetBalance(CurrencyType.Coins) >= gemBoosterItem.GetCost(CurrencyType.Coins)
|| (Shop.getBoosterEnabled() && Plugin.getInventoryManager().Get(Player).getItemCount("Gem Booster") > 0))
{
AddButton(6, new ShopItem(
gemBoosterItem.GetDisplayMaterial(),
gemBoosterItem.GetDisplayName(),
gemBoosterItem.GetDescription(),
@ -144,15 +147,11 @@ public class Menu extends ShopPageBase<CosmeticManager, CosmeticShop>
purchaseGemBooster(gemBoosterItem, player);
}
}
);
if (DonationManager.Get(Player.getName()).GetBalance(CurrencyType.Coins) >= gemBoosterItem.GetCost(CurrencyType.Coins))
{
);
}
else
{
AddItem(15, new ShopItem(
AddItem(6, new ShopItem(
gemBoosterItem.GetDisplayMaterial(),
gemBoosterItem.GetDisplayName(),
gemBoosterItem.GetDescription(),