Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
fix decomp error with lightmap
Browse files Browse the repository at this point in the history
  • Loading branch information
mist475 committed Nov 30, 2023
1 parent c14f254 commit 5638823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/prupe/mcpatcher/cc/Lightmap.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private float getNightVisionStrength(EntityRenderer renderer, float n) {

private boolean compute(EntityRenderer renderer, World world, int[] mapRGB, float partialTick) {
float sun = ColorUtils.clamp(
world.lastLightningBolt > 0 ? 1.0f : 7.0f / 6.0f * (world.getCelestialAngle(1.0f) - 0.2f)) * (width - 1);
world.lastLightningBolt > 0 ? 1.0f : 7.0f / 6.0f * (world.getSunBrightness(1.0f) - 0.2f)) * (width - 1);
float torch = ColorUtils.clamp(renderer.torchFlickerX + 0.5f) * (width - 1);
float nightVisionStrength = getNightVisionStrength(renderer, partialTick);
float gamma = ColorUtils.clamp(Minecraft.getMinecraft().gameSettings.gammaSetting);
Expand Down

0 comments on commit 5638823

Please sign in to comment.