Skip to content

Light passes through blocks #35

@RomanPro100

Description

@RomanPro100

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

2024-07-04.10-42-54.mp4
2024-07-04.10-49-18.mp4
2024-07-04.11-18-40.mp4

Desktop

  • OS: Linux Mint 21.3
  • Minecraft: 1.21
  • Fabric Loader version: 0.15.11
  • Mods:
    • Fabric API 0.100.4+1.21
    • Freecam (Modrinth edition) 1.3.0-beta1+mc1.21
    • ObsidianUI 0.2.7+mc1.21
    • RyoamicLights 0.2.9+mc1.21
  • Version: 0.2.9+mc1.21
  • Branch: 1.21.x-architectury

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions