[Core] Fix /stats lava bucket bug

This commit is contained in:
Shaun Bennett 2015-05-13 23:23:43 -05:00
parent 2c020d10a6
commit 0d2157b4f3

View File

@ -19,9 +19,6 @@ import mineplex.core.shop.item.IButton;
import mineplex.core.shop.item.ShopItem; import mineplex.core.shop.item.ShopItem;
import mineplex.core.stats.StatsManager; import mineplex.core.stats.StatsManager;
/**
* Created by Shaun on 8/25/2014.
*/
public class ArcadeMainPage extends AchievementMainPage public class ArcadeMainPage extends AchievementMainPage
{ {
public ArcadeMainPage(AchievementManager plugin, StatsManager statsManager, AchievementShop shop, CoreClientManager clientManager, DonationManager donationManager, String name, Player player, Player target) public ArcadeMainPage(AchievementManager plugin, StatsManager statsManager, AchievementShop shop, CoreClientManager clientManager, DonationManager donationManager, String name, Player player, Player target)
@ -32,7 +29,7 @@ public class ArcadeMainPage extends AchievementMainPage
@Override @Override
protected void buildPage() protected void buildPage()
{ {
int slot = 10; int slot = 9;
for (AchievementCategory category : AchievementCategory.values()) for (AchievementCategory category : AchievementCategory.values())
{ {
@ -49,13 +46,10 @@ public class ArcadeMainPage extends AchievementMainPage
lore.add(" "); lore.add(" ");
lore.add(ChatColor.RESET + "Click for more details!"); lore.add(ChatColor.RESET + "Click for more details!");
if (slot == 18 || slot == 27 || slot == 36)
slot++;
ShopItem shopItem = new ShopItem(category.getIcon(), category.getIconData(), C.Bold + category.getFriendlyName(), lore.toArray(new String[0]), 1, false, false); ShopItem shopItem = new ShopItem(category.getIcon(), category.getIconData(), C.Bold + category.getFriendlyName(), lore.toArray(new String[0]), 1, false, false);
addButton(slot, shopItem, button); addButton(slot, shopItem, button);
slot += 2; slot += ((slot + 1) % 9 == 0) ? 1 : 2;
} }
addBackButton(); addBackButton();