Skip to content

Use correct placed block position for sound#12410

Merged
lynxplay merged 1 commit into
PaperMC:mainfrom
lynxplay:bugfix/sound-place-interact
Apr 27, 2025
Merged

Use correct placed block position for sound#12410
lynxplay merged 1 commit into
PaperMC:mainfrom
lynxplay:bugfix/sound-place-interact

Conversation

@lynxplay
Copy link
Copy Markdown
Contributor

@lynxplay lynxplay commented Apr 12, 2025

Previously the server attempted to compute the block placed by using the
BlockPlaceContext. This approach however fails on replacable blocks, as
the BlockPlaceContext computes this during its construction, which
happened after the actual world modification.

The commit reworks this approach and now stores metadata in the
InteractionResult which can later be read.
The diff is structured to allow for easy future expansion of the tracked
metadata.

Resolves: #12399
Resolves: #12410


Download the paperclip jar for this pull request: paper-12410.zip

@lynxplay lynxplay requested a review from a team as a code owner April 12, 2025 15:32
@github-project-automation github-project-automation Bot moved this to Awaiting review in Paper PR Queue Apr 12, 2025
@lynxplay lynxplay force-pushed the bugfix/sound-place-interact branch from 0621500 to 8356ef3 Compare April 17, 2025 09:55
@lynxplay lynxplay added the publish-pr Enables a workflow to build Paperclip jars on the pull request. label Apr 17, 2025
@github-project-automation github-project-automation Bot moved this from Awaiting review to Awaiting final testing in Paper PR Queue Apr 22, 2025
Previously the server attempted to compute the block placed by using the
BlockPlaceContext. This approach however fails on replacable blocks, as
the BlockPlaceContext computes this during its construction, which
happened after the actual world modification.

The commit reworks this approach and now stores metadata in the
InteractionResult which can later be read.
The diff is structured to allow for easy future expansion of the tracked
metadata.
@lynxplay lynxplay force-pushed the bugfix/sound-place-interact branch from 8356ef3 to 6949bae Compare April 27, 2025 12:13
@lynxplay lynxplay merged commit b9d3147 into PaperMC:main Apr 27, 2025
2 checks passed
@github-project-automation github-project-automation Bot moved this from Awaiting final testing to Merged in Paper PR Queue Apr 27, 2025
@lynxplay lynxplay deleted the bugfix/sound-place-interact branch April 27, 2025 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

publish-pr Enables a workflow to build Paperclip jars on the pull request.

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

Incorrect stone block placement sound plays for nearby players when replacing replaceable blocks

3 participants