Skip to content

Prevent spawn location getters from allowing making the location invalid#13831

Merged
electronicboy merged 1 commit intoPaperMC:mainfrom
masmc05:clone-spawn-loc
Apr 27, 2026
Merged

Prevent spawn location getters from allowing making the location invalid#13831
electronicboy merged 1 commit intoPaperMC:mainfrom
masmc05:clone-spawn-loc

Conversation

@masmc05
Copy link
Copy Markdown
Contributor

@masmc05 masmc05 commented Apr 27, 2026

For the legacy event to minimize plugin breaking, it just ignores the modified world if it's null. For the experimental event it will now clone the location in the getter to not allow modifying it without passing it to the setter

@masmc05 masmc05 requested a review from a team as a code owner April 27, 2026 16:22
@github-project-automation github-project-automation Bot moved this to Awaiting review in Paper PR Queue Apr 27, 2026
@masmc05 masmc05 changed the title Prevent spawn location getters from making the location invalid Prevent spawn location getters from allowing making the location invalid Apr 27, 2026
@electronicboy electronicboy merged commit 5d62ec0 into PaperMC:main Apr 27, 2026
5 checks passed
@github-project-automation github-project-automation Bot moved this from Awaiting review to Merged in Paper PR Queue Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

3 participants