]> git.lizzy.rs Git - dragonfireclient.git/commit
Move Mapgen V7 river generation into the main generation loop (#10639)
authorParamat <paramat@users.noreply.github.com>
Fri, 20 Nov 2020 16:11:19 +0000 (16:11 +0000)
committerGitHub <noreply@github.com>
Fri, 20 Nov 2020 16:11:19 +0000 (16:11 +0000)
commit872dce5020c5d05597a251c5ce63ebde256f2b64
tree57814a188b73f1bf58fdc842b122016953994d5d
parent2f6393f49d5ebf21abfaa7bff876b8c0cf4ca191
Move Mapgen V7 river generation into the main generation loop (#10639)

All terrain generation now occurs in one loop, instead of rivers being
carved afterwards in a separate loop.
Fixes the removal of nodes added by mods in 'register on generated'.
Avoids other problems and reduces the chance of future bugs.
Mapchunk generation time is reduced.

Also fixes a code mistake which resulted in river channel generation
being disabled at floatland altitudes even when floatlands were disabled.
src/mapgen/mapgen_v7.cpp
src/mapgen/mapgen_v7.h