Skip to content

Fix NPE when serializing UpdateSubChunkBlocksPacket - #6331

Merged
onebeastchris merged 1 commit into
GeyserMC:masterfrom
valaphee:fix-multi-block-change
Apr 27, 2026
Merged

Fix NPE when serializing UpdateSubChunkBlocksPacket#6331
onebeastchris merged 1 commit into
GeyserMC:masterfrom
valaphee:fix-multi-block-change

Conversation

@valaphee

@valaphee valaphee commented Apr 27, 2026

Copy link
Copy Markdown
Member

Copilot AI review requested due to automatic review settings April 27, 2026 09:23
@onebeastchris
onebeastchris merged commit 4adfe0b into GeyserMC:master Apr 27, 2026
3 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a null pointer exception when sending Bedrock UpdateSubChunkBlocksPacket updates by ensuring the packet’s base sub-chunk position is always set before serialization.

Changes:

  • Initialize UpdateSubChunkBlocksPacket’s position using the section’s world-block origin derived from ClientboundSectionBlocksUpdatePacket chunk/section coordinates.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@valaphee
valaphee deleted the fix-multi-block-change branch April 27, 2026 09:34
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.

3 participants