Skip to content

Improve safe teleportation location finding#12

Open
bjorn-out wants to merge 1 commit intoMCCitiesNetwork:mainfrom
bjorn-out:bjorn-out-patch-1
Open

Improve safe teleportation location finding#12
bjorn-out wants to merge 1 commit intoMCCitiesNetwork: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.

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.

1 participant