Skip to content

Optimize waypoint distance check - #13857

Merged
lynxplay merged 4 commits into
PaperMC:mainfrom
Foorcee:feat/optimize-waypoint-distance
Jul 25, 2026
Merged

Optimize waypoint distance check#13857
lynxplay merged 4 commits into
PaperMC:mainfrom
Foorcee:feat/optimize-waypoint-distance

Conversation

@Foorcee

@Foorcee Foorcee commented May 3, 2026

Copy link
Copy Markdown
Contributor

The method doesSourceIgnoreReceiver is called frequently, so using squared distance instead of calculating the actual distance is a straightforward improvement. Additionally, the distance check can be skipped when the broadcast range is set to zero.

@Foorcee
Foorcee requested a review from a team as a code owner May 3, 2026 12:09
@github-project-automation github-project-automation Bot moved this to Awaiting review in Paper PR Queue May 3, 2026
@lynxplay
lynxplay enabled auto-merge (squash) July 25, 2026 13:52
@papermc-projects papermc-projects Bot moved this from Awaiting review to Full approval in Paper PR Queue Jul 25, 2026
@lynxplay
lynxplay merged commit 5563e58 into PaperMC:main Jul 25, 2026
3 checks passed
@github-project-automation github-project-automation Bot moved this from Full approval to Merged in Paper PR Queue Jul 25, 2026
hershate pushed a commit to hershate/Papo that referenced this pull request Jul 27, 2026
Co-authored-by: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com>
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.

6 participants