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: Validate chunk section Y axis upon retrieving ChunkRenderContainer #589

Merged
merged 2 commits into from
Mar 20, 2021

Conversation

FlashyReese
Copy link
Contributor

Fixes #587, the issue was present on de545a5. The ChunkRenderManager#isChunkVisible was modified using the new ChunkGraphCuller#isSectionVisible requiring a ChunkRenderContainer ID. Upon retrieving the ChunkRenderContainer with ChunkRenderManager#getRender, Sodium does not verify chunk section Y axis.

Fixes CaffeineMC#587, the issue was present on CaffeineMC@de545a5. The `ChunkRenderManager#isChunkVisible` was modified using the new `ChunkGraphCuller#isSectionVisible`  requiring a ChunkRenderContainer ID. Upon retrieving the `ChunkRenderContainer` with `ChunkRenderManager#getRender`, Sodium does not verify chunk section Y axis.
@@ -227,6 +227,10 @@ private void addEntitiesToRenderLists(ChunkRenderContainer render) {
}

public ChunkRenderContainer getRender(int x, int y, int z) {
if (y < 0 || y >= 16) {

This comment was marked as resolved.

@jellysquid3 jellysquid3 merged commit 78cf027 into CaffeineMC:1.16.x/next Mar 20, 2021
@FlashyReese FlashyReese deleted the fix-587 branch May 18, 2021 04:01
bytzo pushed a commit to bytzo/sodium-fabric that referenced this pull request Jun 3, 2021
spoorn pushed a commit to spoorn/sodium-forge that referenced this pull request Jun 30, 2021
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.

Crash when flying to negative Y
3 participants