mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add reason parameter to setModified and print it out to verbosestream when saving block
This commit is contained in:
parent
0ce0c8fcfb
commit
1b765b9740
7 changed files with 73 additions and 61 deletions
|
@ -393,9 +393,9 @@ struct TestMapBlock
|
|||
MAP_BLOCKSIZE, MAP_BLOCKSIZE));*/
|
||||
|
||||
// Changed flag should be initially set
|
||||
assert(b.getChangedFlag() == true);
|
||||
b.resetChangedFlag();
|
||||
assert(b.getChangedFlag() == false);
|
||||
assert(b.getModified() == MOD_STATE_WRITE_NEEDED);
|
||||
b.resetModified();
|
||||
assert(b.getModified() == MOD_STATE_CLEAN);
|
||||
|
||||
// All nodes should have been set to
|
||||
// .d=CONTENT_IGNORE and .getLight() = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue