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());
}
Aggregations