Search in sources :

Example 1 with ApplyTexturePackConfirmGui

use of com.almuradev.almura.feature.speed.client.gui.ApplyTexturePackConfirmGui in project Almura by AlmuraDev.

the class AlmuraSettings method checkFirstLaunched.

public static void checkFirstLaunched() {
    final GameSettings settings = Minecraft.getMinecraft().gameSettings;
    optimizeGame();
    if (!settings.resourcePacks.contains(AlmuraSettings.getFontTexturePack())) {
        AlmuraSettings.applyFontTexturePack();
    }
    if (!settings.resourcePacks.contains(AlmuraSettings.getPreferredTexturePack())) {
        new ApplyTexturePackConfirmGui(null).display();
    } else {
        new PanoramicMainMenu(null).display();
    }
    setFirstLaunched(false);
}
Also used : ApplyTexturePackConfirmGui(com.almuradev.almura.feature.speed.client.gui.ApplyTexturePackConfirmGui) GameSettings(net.minecraft.client.settings.GameSettings) PanoramicMainMenu(com.almuradev.almura.feature.menu.main.PanoramicMainMenu)

Aggregations

PanoramicMainMenu (com.almuradev.almura.feature.menu.main.PanoramicMainMenu)1 ApplyTexturePackConfirmGui (com.almuradev.almura.feature.speed.client.gui.ApplyTexturePackConfirmGui)1 GameSettings (net.minecraft.client.settings.GameSettings)1