Skip to content

Conversation

@SirYwell
Copy link
Member

Overview

Fixes #3350

Description

markUnsaved modifies a collection on Vanilla/Spigot. This can lead to crashes when run off the main thread. Let's just run it where it has to run instead.

Also setLightCorrect calls markUnsaved, so we don't need to do that again.

Submitter Checklist

  • Make sure you are opening from a topic branch (/feature/fix/docs/ branch (right side)) and not your main branch.
  • Ensure that the pull request title represents the desired changelog entry.
  • New public fields and methods are annotated with @since TODO.
  • I read and followed the contribution guidelines.

@SirYwell SirYwell requested a review from a team as a code owner October 24, 2025 18:53
@github-actions github-actions bot added the Bugfix This PR fixes a bug label Oct 24, 2025
@dordsor21
Copy link
Member

Is this missing changes..? Or phone being weird...

Otherwise, did the order of the syncTasks matter? We're running in the opposite order now

@dordsor21
Copy link
Member

Ah I see, 1.21.5 and later

@SirYwell
Copy link
Member Author

Otherwise, did the order of the syncTasks matter? We're running in the opposite order now

The tasks are mostly independent. We have two tasks regarding entities (removing and adding), but these shouldn't conflict either.

@dordsor21 dordsor21 requested a review from a team October 25, 2025 08:18
@NotMyFault NotMyFault merged commit 01ea271 into main Oct 26, 2025
9 checks passed
@NotMyFault NotMyFault deleted the fix/chunk-map-race-condition branch October 26, 2025 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bugfix This PR fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Server crashes when pasting schematics from older versions

4 participants