1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-10 18:51:05 +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:
sfan5 2025-03-18 21:50:17 +01:00
parent ed40ea010b
commit 7b746d21f9
8 changed files with 66 additions and 32 deletions

View file

@ -53,11 +53,16 @@ public:
return m_queue.front();
}
u32 size() const
size_t size() const
{
return m_queue.size();
}
bool empty() const
{
return m_queue.empty();
}
private:
std::set<Value> m_set;
std::queue<Value> m_queue;