Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Support 0>y>256 for safe/random teleports #4641

Merged
merged 3 commits into from
Nov 24, 2021
Merged

Conversation

mdcfe
Copy link
Member

@mdcfe mdcfe commented Nov 22, 2021

This PR introduces a WorldInfoProvider which exposes the correct minimum and maximum logical heights for worlds, and updates the safe location methods to use this provider. This should also mitigate safe teleport nether roof exploits.

@mdcfe mdcfe requested review from JRoy and pop4959 November 22, 2021 12:54
@JRoy JRoy changed the title Add world info provider for world height Support 0>y>256 for safe/random teleports Nov 24, 2021
@JRoy JRoy merged commit 1caaa98 into mc/1.18 Nov 24, 2021
@JRoy JRoy deleted the mc/1.18-world-height branch November 24, 2021 04:44
JRoy added a commit that referenced this pull request Nov 24, 2021
Co-authored-by: pop4959 <pop4959@gmail.com>
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
JRoy added a commit that referenced this pull request Nov 25, 2021
Co-authored-by: pop4959 <pop4959@gmail.com>
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
JRoy added a commit that referenced this pull request Nov 26, 2021
Co-authored-by: pop4959 <pop4959@gmail.com>
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
JRoy added a commit that referenced this pull request Nov 26, 2021
Co-authored-by: pop4959 <pop4959@gmail.com>
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
mdcfe added a commit that referenced this pull request Nov 30, 2021
Co-authored-by: pop4959 <pop4959@gmail.com>
Co-authored-by: Josh Roy <10731363+JRoy@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
None yet
Development

Successfully merging this pull request may close these issues.

3 participants