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 clouds still being rendered if height is NaN #2150

Merged
merged 2 commits into from
Nov 5, 2023

Conversation

embeddedt
Copy link
Contributor

Linked Issues

#2147

Proposed Changes

Vanilla checks whether the cloud height is NaN and skips rendering them if so. We should do the same.

Note: the local variables were reordered, in order to bail out early if height is NaN, rather than computing the color.

@jellysquid3
Copy link
Member

Looks fine to me. Can you add a comment explaining why that check exists, since this is fixing a bug?

@jellysquid3 jellysquid3 merged commit 464c9d0 into CaffeineMC:dev Nov 5, 2023
1 check passed
@embeddedt embeddedt deleted the fix/cloud-nan branch December 6, 2023 22:35
IMS212 pushed a commit to IMS212/sodium-fabric that referenced this pull request Aug 6, 2024
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