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 blocks in chunk returning too much #3941

Merged
merged 1 commit into from
May 3, 2021

Conversation

TPGamesNL
Copy link
Member

Description

Changed AABB and classes using it, to not make certain regions extended by 1 block. From some of the constructors in AABB you get the impression upperBound is exclusive (because some constructors add 1 to each vector component), but the implementation indicates is actually inclusive, so these aren't needed. I've also changed the calls to World#getMaxHeight(), because that always returns the 1 above the highest possibly y coord where a block can be found (e.g. 256 instead of 255).


Target Minecraft Versions: any
Requirements: none
Related Issues: none

@TPGamesNL TPGamesNL added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. 2.5 labels May 3, 2021
@TPGamesNL TPGamesNL changed the title Update files Fix blocks in chunk returning too much May 3, 2021
@FranKusmiruk FranKusmiruk merged commit c717b2f into SkriptLang:master May 3, 2021
@TPGamesNL TPGamesNL deleted the fix/blocks-in-chunk branch May 3, 2021 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants