ThinkingStudios / RyoamicLights

LambDynamicLights unofficial architectury port. A dynamic lights mod for Minecraft.
MIT License
19 stars 2 forks source link

Light passes through blocks #35

Open RomanPro100 opened 4 months ago

RomanPro100 commented 4 months ago

Describe the bug Basically, the title. When a player holds a light-emitting item, or when entities glow, the light passes through walls.

To Reproduce With glowing entities:

  1. Make a chamber out of non-transparent blocks
  2. Spawn a mob inside of it (e.g. glow squid)
  3. Give it a Glowing effect if it doesn't glow
  4. Close the chamber
  5. See the light passing through the chamber

With players (using the freecam mod, but I believe it can be tested in multiplayer without the mod):

  1. Make a chamber out of non-transparent blocks
  2. Set the freecam outside the chamber
  3. Go inside and close the chamber
  4. Hold a light-emitting item (e.g. torch)
  5. Switch to the freecam
  6. See the light passing through the chamber

Expected behavior No light from the mob/player is visible

Screen recordings

https://github.com/ThinkingStudios/RyoamicLights/assets/99795209/4c94a7d8-cfcb-47d1-a439-55d56c73e203

https://github.com/ThinkingStudios/RyoamicLights/assets/99795209/b9edfc3c-41a9-4721-b1f2-f2aa366ce383

https://github.com/ThinkingStudios/RyoamicLights/assets/99795209/5e840666-0c24-4751-9166-0095c5262496

Desktop