Tough As Nails

Tough As Nails

21M Downloads

Temperature GUI uses whatever the previous openGL draw color was

Laike-Endaril opened this issue ยท 2 comments

commented

The draw color is not set before drawing the temperature bulb. This sometimes causes it to be drawn in other colors if another mod is changing the draw color.

Posting due to an issue someone posted on my own project, which is caused by this issue.

commented

In TemperatureOverlayHandler, changing this:

if (minecraft.playerController.gameIsSurvivalOrAdventure())
{
    drawTemperature(width, height, temperature);
}

...to this:

if (minecraft.playerController.gameIsSurvivalOrAdventure())
{
    GL11.glColor4f(1, 1, 1, 1);
    drawTemperature(width, height, temperature);
}

...would fix the issue.

commented

You should open a pull request instead.