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

Fix getMaxHeight to be exclusive instead of inclusive to match docs #11675

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MrPowerGamerBR
Copy link
Contributor

@MrPowerGamerBR MrPowerGamerBR commented Nov 27, 2024

The getMaxHeight docs says that the value is exclusive, not inclusive. This has changed in 1.21.3 and since 1.21.3 the value is now inclusive due to Mojang changes. This patch changes the value to be exclusive by +1 the returned value from NMS.

Worth nothing that this needs to be tested! I haven't tested it yet, and I seen that there are some CraftBukkit code that does call getMaxHeight (setBiome)

Fixes #11674

@MrPowerGamerBR MrPowerGamerBR requested a review from a team as a code owner November 27, 2024 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Awaiting review
Development

Successfully merging this pull request may close these issues.

getMaxHeight() has incorrect behavior since 1.21.3
1 participant