[MC-642] Sunlight Value staying 15 during night. Created: 26/Oct/12  Updated: 28/Jul/20  Resolved: 27/May/13

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.2
Fix Version/s: None

Type: Bug
Reporter: Paul Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: debug, f3
Environment:

Normal Minecraft Client
Java 7 u7


Issue Links:
Duplicate
duplicates MC-10410 Sunlight Value staying 15 during night Resolved
Confirmation Status: Unconfirmed
Game Mode: Survival

 Description   

What is happening: The value of sl on the F3 screen is staying at 15 during night.
What is supposed to be happening: The sl value should be 4 during night.
Steps to reproduce:
1. Go on any world
2. Wait until night
3. Press F3
4. Look at sl value



 Comments   
Comment by Amaranth (Travis Watkins) [ 26/Oct/12 ]

Minecraft has two light values: sun light and block light. The sun light value never changes as that would be very expensive. This is how it worked before beta 1.8 and sunrise/sunset were laggy.

The game knowns to ignore sun light values during the night for spawning and such so there is no problem with this setup. It even uses the sun light values for deciding where and how intensely it should render the blue "moonlit night" shade for a world instead of just pitch black darkness.

Generated at Sun Jan 12 11:51:44 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.