mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +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
|
@ -197,8 +197,8 @@ void TestSAO::testActivate(ServerEnvironment *env)
|
|||
UASSERT(block);
|
||||
block->m_static_objects.insert(0, s_obj);
|
||||
|
||||
// Activating the block will convert it to active.
|
||||
env->activateBlock(block);
|
||||
// this will convert it to an active object
|
||||
env->forceActivateBlock(block);
|
||||
|
||||
const u16 obj_id = assert_active_in_block(block);
|
||||
auto *obj = env->getActiveObject(obj_id);
|
||||
|
@ -239,7 +239,7 @@ void TestSAO::testStaticToFalse(ServerEnvironment *env)
|
|||
UASSERT(block);
|
||||
block->m_static_objects.insert(0, s_obj);
|
||||
|
||||
env->activateBlock(block);
|
||||
env->forceActivateBlock(block);
|
||||
|
||||
const u16 obj_id = assert_active_in_block(block);
|
||||
auto *obj = env->getActiveObject(obj_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue