LambDynamicLights

LambDynamicLights

19M Downloads

[1.17] Support for light block levels

Felix14-v2 opened this issue ยท 1 comments

commented

Currently, the light blocks in the inventory that have different lighting levels glow with the same intensity (even with 0 level):
https://youtu.be/I33eF9vvEHA

it would be more logical if the level of dynamic light depended on the level of item in the inventory.

commented

Trying to fix this, but just for posterity, Java decided to become as cursed as possible.

image

Executing state.getLuminance() returns 7 as it should, but if the entire method is executed it returns magically 15.