Skip to content

Improve safe teleportation location finding - #12

Merged
md5sha256 merged 3 commits into
MCCitiesNetwork:mainfrom
bjorn-out:bjorn-out-patch-1
Jun 21, 2026
Merged

Improve safe teleportation location finding#12
md5sha256 merged 3 commits into
MCCitiesNetwork:mainfrom
bjorn-out:bjorn-out-patch-1

Conversation

@bjorn-out

Copy link
Copy Markdown
Contributor

This PR fixes an issue where searching for a safe teleport location in very tall regions often times out before a valid spot is found.

Currently, the search starts at the vertical center of the region. For regions that span from bedrock to build height, this means the search often spends most of its time checking empty air.

This PR updates the search behavior for very tall plots to begin around y=80, as long as that height falls within the region. This significantly improves the chance of finding a safe location before the search times out.

@Technofied
Technofied dismissed a stale review May 9, 2026 03:56

Not a maintainer, Github user additionally not found?

Comment thread realty-paper/src/main/java/io/github/md5sha256/realty/settings/Settings.java Outdated
@bjorn-out
bjorn-out requested a review from md5sha256 May 18, 2026 13:55
@md5sha256
md5sha256 merged commit a76f9fc into MCCitiesNetwork:main Jun 21, 2026
1 check passed
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