Advanced Peripherals

Advanced Peripherals

29M Downloads

[Issue] Environment Detector getLightLevel()

Jason-c-o opened this issue ยท 1 comments

commented

Describe
The Environment Detector's getLightLevel() method returns the sky light level, which is always what the level would be at noon. Is this supposed to return the block light level or internal light levels, perhaps?

Reproduce
Steps to reproduce the behavior:

  1. Attach a detector to a computer
  2. Run the method at midnight in-game time
  3. Get a light level of 15

Versions:

  • Forge version: 35.1.28
  • AdvancedPeripherals version: 0.3.3b
commented

getLightLevel() should work like a daylight sensor, but it doesn't, I will fix this.
I will add the function getBlockLight()