Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix players spawning at Y = 0 after teleportation #3

Merged
merged 12 commits into from
Jan 29, 2021

Conversation

ALongStringOfNumbers
Copy link
Member

@ALongStringOfNumbers ALongStringOfNumbers commented Dec 29, 2020

Fixes players being spawned at Y = 0, or on top of the Nether roof after failing to find a suitable teleportation position into the Nether.

See #1 for the analysis. This PR is a continuation of that PR, but switched to this fork, instead of on my fork.

Notice, while testing this, I did spawn in lava one time, so it would be good if we could figure out how to include not spawning in lava as part of the 2 high empty block check.

Edit: Note an easy way to test this PR would be to set dimPos to null in the getDimPos method. This will force the creation of a new spawning location every time the player travels to the nether.

@NotMyWing NotMyWing changed the base branch from dev-1.12.2 to master December 29, 2020 10:24
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants