Skip to content

Fix issue75 population height - #105

Merged
RecursivePineapple merged 3 commits into
GTNewHorizons:masterfrom
Jakfut:fix-issue75-population-height-master
Aug 4, 2026
Merged

Fix issue75 population height#105
RecursivePineapple merged 3 commits into
GTNewHorizons:masterfrom
Jakfut:fix-issue75-population-height-master

Conversation

@Jakfut

@Jakfut Jakfut commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Fixes #75 by generating the required 2x2 terrain columns before legacy population and making getTopFilledSegment cube-aware.

Most of the misplaced houses seem to have been from the broken 2x2 terrain column generation, once I fixed that there was only one bugged house in 100 villages and with cube-aware getTopFilledSegment that should also be fixed, tho its hard to verify because it was so rare.

Tested with 0.1.13 alpha-pre, but should also work with 0.1.10 and without #97

@RecursivePineapple RecursivePineapple left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is the problem that generated cubes aren't present in storageArrays? Because if so, that should be fixed too.

Comment thread src/main/java/com/cardinalstar/cubicchunks/mixin/early/common/MixinChunk.java Outdated
Comment thread src/main/java/com/cardinalstar/cubicchunks/mixin/early/common/MixinChunk.java Outdated
@Jakfut

Jakfut commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

No, the problem is that population can query terrain whose surface cube is not loaded/generated yet, so there is no surface cube to put into storageArrays yet

@RecursivePineapple
RecursivePineapple merged commit 2fc6c7e into GTNewHorizons:master Aug 4, 2026
1 check passed
@Jakfut
Jakfut deleted the fix-issue75-population-height-master branch August 4, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Height map isn't working properly

2 participants