Skip to content

Commit f1349be

Browse files
committedNov 26, 2020
Avoid marking map blocks dirty upon deserialization.
1 parent 8dc70eb commit f1349be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/mapblock.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ void MapBlock::deSerialize(std::istream &is, u8 version, bool disk)
533533
// Timestamp
534534
TRACESTREAM(<<"MapBlock::deSerialize "<<PP(getPos())
535535
<<": Timestamp"<<std::endl);
536-
setTimestamp(readU32(is));
536+
setTimestampNoChangedFlag(readU32(is));
537537
m_disk_timestamp = m_timestamp;
538538

539539
// Dynamically re-set ids based on node names
@@ -716,10 +716,10 @@ void MapBlock::deSerialize_pre22(std::istream &is, u8 version, bool disk)
716716

717717
// Timestamp
718718
if (version >= 17) {
719-
setTimestamp(readU32(is));
719+
setTimestampNoChangedFlag(readU32(is));
720720
m_disk_timestamp = m_timestamp;
721721
} else {
722-
setTimestamp(BLOCK_TIMESTAMP_UNDEFINED);
722+
setTimestampNoChangedFlag(BLOCK_TIMESTAMP_UNDEFINED);
723723
}
724724

725725
// Dynamically re-set ids based on node names

0 commit comments

Comments
 (0)