1
0
Fork 0
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:
Perttu Ahola 2011-11-21 13:29:16 +02:00
parent 0ce0c8fcfb
commit 1b765b9740
7 changed files with 73 additions and 61 deletions

View file

@ -1478,7 +1478,7 @@ void add_random_objects(MapBlock *block)
last_node_walkable = false;
}
}
block->setChangedFlag();
block->raiseModified(MOD_STATE_WRITE_NEEDED, "mapgen::add_random_objects");
#endif
}