mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-28 06:05:18 +01:00
Fix blocks written by vmanip not being marked as modified
This bug can be triggered by e.g. calling minetest.place_schematic() and stopping the server immediately afterwards.
This commit is contained in:
@@ -2737,6 +2737,7 @@ void MMVManip::blitBackAll(std::map<v3s16, MapBlock*> *modified_blocks,
|
||||
continue;
|
||||
|
||||
block->copyFrom(*this);
|
||||
block->raiseModified(MOD_STATE_WRITE_NEEDED, MOD_REASON_VMANIP);
|
||||
|
||||
if(modified_blocks)
|
||||
(*modified_blocks)[p] = block;
|
||||
|
||||
Reference in New Issue
Block a user