19 lines
850 B
Diff
19 lines
850 B
Diff
--- a/net/minecraft/client/renderer/LightTexture.java
|
|
+++ b/net/minecraft/client/renderer/LightTexture.java
|
|
@@ -112,6 +112,15 @@
|
|
f12 = 0.25F + f9 * 0.75F;
|
|
}
|
|
|
|
+ float[] colors = {f10, f11, f12};
|
|
+ world.func_201675_m().getLightmapColors(p_205106_1_, f, f4, f5, colors);
|
|
+ f10 = colors[0]; f11 = colors[1]; f12 = colors[2];
|
|
+
|
|
+ // Forge: fix MC-58177
|
|
+ f10 = net.minecraft.util.math.MathHelper.func_76131_a(f10, 0f, 1f);
|
|
+ f11 = net.minecraft.util.math.MathHelper.func_76131_a(f11, 0f, 1f);
|
|
+ f12 = net.minecraft.util.math.MathHelper.func_76131_a(f12, 0f, 1f);
|
|
+
|
|
if (f2 > 0.0F) {
|
|
float f17 = 1.0F / f10;
|
|
if (f17 > 1.0F / f11) {
|