diff --git a/src/net/minecraft/src/WorldProvider.java b/src/net/minecraft/src/WorldProvider.java index 40931b0..318af77 100644 --- a/src/net/minecraft/src/WorldProvider.java +++ b/src/net/minecraft/src/WorldProvider.java @@ -59,9 +59,8 @@ public abstract class WorldProvider { public float[] calcSunriseSunsetColors(float var1, float var2) { float var3 = 0.4F; float var4 = MathHelper.cos(var1 * (float)Math.PI * 2.0F) - 0.0F; - float var5 = 0F; - if(var4 >= var5 - var3 && var4 <= var5 + var3) { - float var6 = (var4 - var5) / var3 * 0.5F + 0.5F; + if (var4 >= -var3 && var4 <= var3) { + float var6 = (var4 / var3) * 0.5F + 0.5F; float var7 = 1.0F - (1.0F - MathHelper.sin(var6 * (float)Math.PI)) * 0.99F; var7 *= var7; this.colorsSunriseSunset[0] = var6 * 0.3F + 0.7F;