mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Make sure generated blocks have their timestamp set
behavior change: newly generated blocks are no longer momentarily activated. this shouldn't matter for anyone and did not consistently apply to all blocks anyway addresses issue from #15902 for new maps(!)
This commit is contained in:
parent
ed40ea010b
commit
7b746d21f9
8 changed files with 66 additions and 32 deletions
|
@ -61,9 +61,13 @@ public:
|
|||
Blocks are generated by using these and makeBlock().
|
||||
*/
|
||||
bool blockpos_over_mapgen_limit(v3s16 p);
|
||||
/// @brief copy data from map to prepare for mapgen
|
||||
/// @return true if mapgen should actually happen
|
||||
bool initBlockMake(v3s16 blockpos, BlockMakeData *data);
|
||||
/// @brief write data back to map after mapgen
|
||||
/// @param now current game time
|
||||
void finishBlockMake(BlockMakeData *data,
|
||||
std::map<v3s16, MapBlock*> *changed_blocks);
|
||||
std::map<v3s16, MapBlock*> *changed_blocks, u32 now);
|
||||
|
||||
/*
|
||||
Get a block from somewhere.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue