Fixed alpha for cure overlay

This commit is contained in:
Kino 2017-07-10 17:06:09 -04:00
parent 18b4c3d7fc
commit 70c7dacb83

View file

@ -88,7 +88,7 @@ public class AetherOverlay
Tessellator tessellator = Tessellator.getInstance();
VertexBuffer renderer = tessellator.getBuffer();
float alpha = getCureAlpha((-(float)playerAether.poisonInstance().poisonTime % 50)) / 100.0F;
float alpha = getCureAlpha(-((float)playerAether.poisonInstance().poisonTime + 100.0F) / 100.0F);
int width = scaledresolution.getScaledWidth();
int height = scaledresolution.getScaledHeight();
@ -112,7 +112,7 @@ public class AetherOverlay
GlStateManager.depthMask(true);
GlStateManager.enableDepth();
GlStateManager.enableAlpha();
GlStateManager.color(1.0F, 1.0F, 1.0F, alpha);
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
GlStateManager.popMatrix();
}
}