Mojira Archive
MC-51150

Swimming in water, riding a minecart or standing on soul sand and snow layers 8 darkens the sky at day time

The bug

In some situations the sky darkens when it shouldn't.

Affected situations

Likely incomplete

  • Sitting in a minecart or boat
  • Swimming in water
  • Standing on soul sand and snow layers 8

Code analysis and possible fix

The bug was introduced in 1.8 (according to the bug report comments) where they changed the client to track entities by their feet location instead of their eye location. This bug fix does the sky light calculation (for determining fog color) at the entity's eye location where it should be instead of their feet.

Source

Forge code changes

float f3 = this.mc.world.getLightBrightness(new BlockPos(this.mc.getRenderViewEntity()));