Search in sources :

Example 1 with GuiAddonError

use of cc.hyperium.gui.GuiAddonError in project Hyperium by HyperiumClient.

the class HyperiumGuiMainMenu method drawScreen.

public void drawScreen() {
    if (!Hyperium.INSTANCE.isAcceptedTos()) {
        Hyperium.LOGGER.info("Hasn't accepted! Redirecting them!");
        Hyperium.INSTANCE.getHandlers().getGuiDisplayHandler().setDisplayNextTick(new GuiHyperiumScreenTos());
    } else
        Hyperium.INSTANCE.getHandlers().getGuiDisplayHandler().setDisplayNextTick(!AddonMinecraftBootstrap.getDependenciesLoopMap().isEmpty() || !AddonMinecraftBootstrap.getMissingDependenciesMap().isEmpty() ? new GuiAddonError() : new GuiHyperiumScreenMainMenu());
}
Also used : GuiAddonError(cc.hyperium.gui.GuiAddonError) GuiHyperiumScreenTos(cc.hyperium.gui.GuiHyperiumScreenTos) GuiHyperiumScreenMainMenu(cc.hyperium.gui.GuiHyperiumScreenMainMenu)

Aggregations

GuiAddonError (cc.hyperium.gui.GuiAddonError)1 GuiHyperiumScreenMainMenu (cc.hyperium.gui.GuiHyperiumScreenMainMenu)1 GuiHyperiumScreenTos (cc.hyperium.gui.GuiHyperiumScreenTos)1