Skip to content

Fix MapItem incorectly fetching water biomes on treasure maps#11936

Merged
kennytv merged 1 commit into
mainfrom
fix/map-biome-check
Jan 11, 2025
Merged

Fix MapItem incorectly fetching water biomes on treasure maps#11936
kennytv merged 1 commit into
mainfrom
fix/map-biome-check

Conversation

@Owen1212055
Copy link
Copy Markdown
Member

@Owen1212055 Owen1212055 commented Jan 9, 2025

This fixes a slight deviation from vanilla in that we incorrectly use the x/y/z coordinates rather than passing section coords.
This is because the old method (getBiome) uses block coords, while uncached noise uses the section positions.

This whole "optimization" creates a big enough deviation in that it probably isn't noticeable. So maybe in future, this should be made configurable?

Note: This is an old issue, not hardfork issue.

This fixes a slight deviation from vanilla in that we incorrectly use the x/y/z coordinates rather than passing section coords.

This is because the old method (getBiome) uses block coords, while uncached noise uses the section positions.
@Owen1212055 Owen1212055 requested a review from a team as a code owner January 9, 2025 19:27
@kennytv kennytv added the type: bug Something doesn't work as it was intended to. label Jan 10, 2025
@kennytv kennytv merged commit ea7b961 into main Jan 11, 2025
@kennytv kennytv deleted the fix/map-biome-check branch January 11, 2025 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something doesn't work as it was intended to.

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

3 participants