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 biome IDs over 255 not working for Magic Map and the Stream biome #97

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

48a3efa65c881ef567345b17f3910e06

Note that when auto generating biome ids it still uses the old range of 256 but this shouldn't be a problem because you would have changed all the biome configs anyawy

@RecursivePineapple RecursivePineapple requested a review from a team December 21, 2024 21:33
@RecursivePineapple RecursivePineapple added the bug Something isn't working label Dec 21, 2024
@@ -94,7 +94,7 @@ public void updateMapData(World world, Entity entity, TFMagicMapData mapData) {
boolean var20 = xOffset * xOffset + zOffset * zOffset > (drawSize - 2) * (drawSize - 2);
int xDraw2 = (xCenter / scaleFactor + xStep - xSize / 2) * scaleFactor;
int zDraw2 = (zCenter / scaleFactor + zStep - zSize / 2) * scaleFactor;
int[] biomeFrequencies = new int[256];
int[] biomeFrequencies = new int[32768];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be hardcoded and instead should be based on the presence (or lack thereof) of ID extenders.

@Dream-Master
Copy link
Member

@48a3efa65c881ef567345b17f3910e06 any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants