Skip to content

Fix wrong coords being read by check task during dim change on Folia - #119

Open
Warriorrrr wants to merge 1 commit into
pop4959:masterfrom
Warriorrrr:fix/folia-dimension-change-bug
Open

Fix wrong coords being read by check task during dim change on Folia#119
Warriorrrr wants to merge 1 commit into
pop4959:masterfrom
Warriorrrr:fix/folia-dimension-change-bug

Conversation

@Warriorrrr

Copy link
Copy Markdown
Contributor

Fixes the possibility of the border check task being able to see the player at coordinates which aren't correct while they're in the process of changing dimensions, due to the border check task running on the global region instead of as an entity task.

Depends on #118 to raise the chunky dependency version & subsequently the java version

It's easier to reproduce if the check interval is set to 1 tick & teleporting into ungenerated chunks, I entered a portal at around x & z 20k in the overworld but the task saw me at those same coordinates in the nether:
Screenshot 2026-08-29 094944

@pop4959 pop4959 mentioned this pull request Aug 30, 2026

@pop4959 pop4959 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Looks fine to me. Change itself makes sense, it's definitely an improvement to schedule the check per player on their respective scheduler on Folia.

Github diff is a bit messy but I can see you basically just copied everything from the run method into check.

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.

2 participants