Skip to content

getBiomeCenters returns wrong biome sizes #122

@Gaider10

Description

@Gaider10

Example in cubiomes viewer:
MC 1.20
seed: 7335000078560539927
Large biomes
Y: 64
x1: 2313 z1: 1533 x2: 2924 z2: 2133

Biome Statistics scale 1:4 Mushroom Fields count: 4730
image
Biome Locate Mushroom Fields area @ 1:4: 1 + 9206
image

This happens because in floodFillGen the same position can be added to the queue multiple times before one of them gets popped and the position's ids entry gets set to INT_MAX.
Checking for ids[k] == INT_MAX before processing each popped queue entry fixes the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions