@Override
    protected final void onButtonClick(Button button) {
        if (button.active) {
            if (button.id == 1) {
                CloudLevelInputScreen screen = new CloudLevelInputScreen(parent, ""
                        + minecraft.level.cloudLevel, height, "Enter new value for cloud level...");
                screen.numbersOnly = true;
                minecraft.setCurrentScreen(screen);
            }
            if (button.id == 2) {
                CloudColorInputScreen screen = new CloudColorInputScreen(parent, ""
                        + Integer.toHexString(minecraft.level.cloudColor), height,
                        "Enter new value for cloud color..."
                );
                screen.allowedChars = "ABCDEFabcdef1234567890";
                screen.stringLimit = 6;
                minecraft.setCurrentScreen(screen);
            }

            if (button.id == 3) {
                settings.showClouds = !settings.showClouds;
                buttons.set(2, new OptionButton(3, width / 2 - 77, height / 6 + 72, "Clouds: "
                        + (settings.showClouds ? "On" : "Off")));
            }

            if (button.id == 4) {
                minecraft.setCurrentScreen(new AdvancedOptionsScreen(this, settings));
            }
        }
    }