Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: light blocks are rendered as unknown blocks #251

Closed
wants to merge 1 commit into from

Conversation

Phoenix616
Copy link

@Phoenix616 Phoenix616 commented Jan 24, 2025

User description

This fixes that light blocks would show up as unknown blocks with a question mark texture when they should be invisible

The bug:
image

After the fix:
image


PR Type

Bug fix


Description

  • Fixed rendering issue where light blocks appeared as unknown blocks.

  • Added light to the set of invisible blocks in the mesher constants.


Changes walkthrough 📝

Relevant files
Bug fix
worldConstants.ts
Add light blocks to invisible blocks set                                 

prismarine-viewer/viewer/lib/mesher/worldConstants.ts

  • Added light to the INVISIBLE_BLOCKS set.
  • Ensures light blocks are treated as invisible.
  • +1/-1     

    Need help?
  • Type /help how to ... in the comments thread for any questions about Qodo Merge usage.
  • Check out the documentation for more information.
  • Copy link

    codesandbox bot commented Jan 24, 2025

    Review or Edit in CodeSandbox

    Open the branch in Web EditorVS CodeInsiders

    Open Preview

    @Phoenix616
    Copy link
    Author

    Addressed by 382a685

    @Phoenix616 Phoenix616 closed this Jan 27, 2025
    @zardoy zardoy deleted the pr/fix-light-block branch January 27, 2025 11:31
    Repository owner deleted a comment from qodo-merge-pro-for-open-source bot Jan 27, 2025
    Repository owner deleted a comment from qodo-merge-pro-for-open-source bot Jan 27, 2025
    @zardoy
    Copy link
    Owner

    zardoy commented Jan 27, 2025

    Addressed by 382a685

    Yes sorry should have pushed there, totally forgot

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    2 participants