8000 isViableStructurePosition checks wrong coordinates in Pre1.9 · Issue #146 · Cubitect/cubiomes · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
isViableStructurePosition checks wrong coordinates in Pre1.9 #146
Open
@Eliotex

Description

@Eliotex

// performed near the middle of the chunk [(9,9) in 1.13, TODO: check 1.7]

"TODO: Check 1.7" - I did that.
The game checks the chunk coords at 8 8 and NOT 9 9 whether the chunk has a viable biome at the structure position.

As far as I can tell those extra lines of code should fix it:

if (g->mc <= MC_1_15)

if (g->mc <= MC_1_15)
{
g->entry = &g->ls.layers[L_VORONOI_1];
if (g->mc <= MC_1_8_9)
{
sampleX = chunkX * 16 + 8;
sampleZ = chunkZ * 16 + 8;
}

else
{
sampleX = chunkX * 16 + 9;
sampleZ = chunkZ * 16 + 9;
}
}

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

      0