Cap the mana cost to 100k for rendering mana bars.

This commit is contained in:
Lizbeth Rika committed 2015-02-02 17:35:09 +00:00
1 parent fcb3492b78
commit d8dd7eb220
1 file changed
+1 -1
@@ -332,6 +332,6 @@ public final class HUDHandler {
Color color_ = new Color(color);
GL11.glColor4ub((byte) color_.getRed(), (byte) color_.getGreen(),(byte) color_.getBlue(), (byte) (255F * alpha));
RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0, 0, 5, manaPercentage, 3);
RenderHelper.drawTexturedModalRect(x + 1, y + 1, 0, 0, 5, Math.min(100, manaPercentage), 3);
}
}