8000 fix(chunks): add all-air chunks in subchunk request mode by NopeNotDark · Pull Request #162 · oomph-ac/oomph · GitHub
[go: up one dir, main page]

Skip to content

fix(chunks): add all-air chunks in subchunk request mode - #162

Merged
NopeNotDark merged 1 commit into
stablefrom
fix/all-air-chunks
Sep 1, 2026
Merged

NopeNotDark merged 1 commit into
stablefrom
fix/all-air-chunks

Conversation

@NopeNotDark
@NopeNotDark NopeNotDark commented Sep 1, 2026 •
Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Bug Fixes
    • Improved handling of chunk requests with no subchunks.
    • Generates an empty area using the requested dimension, with a safe fallback for unknown dimensions.
    • Added support for notifying chunk debug mode during this process.

@NopeNotDark
NopeNotDark merged commit 22fe13f into stable Sep 1, 2026
@NopeNotDark
NopeNotDark deleted the fix/all-air-chunks branch September 1, 2026 16:29
@coderabbitai
coderabbitai Bot commented Sep 1, 2026 •
Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 5b7e9587-691c-4992-aef3-a2863eda8338

📥 Commits

Reviewing files that changed from the base of the PR and between 28d25c9 and f4df6a4.

📒 Files selected for processing (1)
  • anticheat/player/component/world.go

📝 Walkthrough

Walkthrough

HandleLevelChunk now registers an all-air chunk for zero-limit subchunk requests. It resolves the packet dimension, defaults unknown dimensions to the overworld, and emits a chunk debug notification.

Changes

Zero-limit subchunk handling

Layer / File(s) Summary
Register all-air chunks for zero-limit requests
anticheat/player/component/world.go
The component imports chunk and anticheat-world packages. It resolves the packet dimension, creates an all-air chunk at the packet position, registers it, and emits a chunk debug notification.

Estimated code review effort: 2 (Simple) | ~10 minutes

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/all-air-chunks

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant

0