1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

Fix blockseed for on_generated in mapgen env

This commit is contained in:
sfan5 2024-07-22 16:31:46 +02:00 committed by GitHub
parent a7a719261e
commit 02f40e5b0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 8 additions and 5 deletions

View file

@ -167,6 +167,7 @@ private:
*/
class Mapgen {
public:
// Seed used for noises (truncated from the map seed)
s32 seed = 0;
int water_level = 0;
int mapgen_limit = 0;
@ -180,6 +181,7 @@ public:
EmergeParams *m_emerge = nullptr;
const NodeDefManager *ndef = nullptr;
// Chunk-specific seed used to place ores and decorations
u32 blockseed;
s16 *heightmap = nullptr;
biome_t *biomemap = nullptr;