Fix two null pointers

This commit is contained in:
kaenganxt
2014-10-31 16:15:23 +01:00
parent 51151a782a
commit a2a07e9cda
4 changed files with 4 additions and 6 deletions

View File

@@ -88,6 +88,7 @@ public class Setup {
public static void setupClasses() {
Core.getMainClass().lang = new LanguageSupport(Core.getMainClass());
new Inventories(Core.getMainClass());
setupInventories();
Core.getMainClass().perms = new Permissions(Core.getMainClass());
Core.getMainClass().tools = new Tools();
Core.getMainClass().pots = new FlowerPots();
@@ -212,7 +213,7 @@ public class Setup {
Core.getMainClass().getCommand("addAimTWWin").setExecutor(oc);
}
public static void setupInventories() {
private static void setupInventories() {
Inventories.registerInventory("GAMEMODES", "select_gamemode_inv", ChatColor.DARK_BLUE);
Inventories.putIntoInventory("GAMEMODES", 0, Inventories.buildItems(Material.RED_ROSE, "inv_lobby_tps", ChatColor.DARK_GREEN));
Inventories.putIntoInventory("GAMEMODES", 2, Inventories.buildItems(Material.CARROT_STICK, "inv_lobby_minigames", ChatColor.BLUE));