forked from Mirrorlandia_minetest/minetest
Avoid marking map blocks dirty upon deserialization.
This commit is contained in:
parent
8dc70ebb93
commit
f1349be542
@ -533,7 +533,7 @@ void MapBlock::deSerialize(std::istream &is, u8 version, bool disk)
|
|||||||
// Timestamp
|
// Timestamp
|
||||||
TRACESTREAM(<<"MapBlock::deSerialize "<<PP(getPos())
|
TRACESTREAM(<<"MapBlock::deSerialize "<<PP(getPos())
|
||||||
<<": Timestamp"<<std::endl);
|
<<": Timestamp"<<std::endl);
|
||||||
setTimestamp(readU32(is));
|
setTimestampNoChangedFlag(readU32(is));
|
||||||
m_disk_timestamp = m_timestamp;
|
m_disk_timestamp = m_timestamp;
|
||||||
|
|
||||||
// Dynamically re-set ids based on node names
|
// Dynamically re-set ids based on node names
|
||||||
@ -716,10 +716,10 @@ void MapBlock::deSerialize_pre22(std::istream &is, u8 version, bool disk)
|
|||||||
|
|
||||||
// Timestamp
|
// Timestamp
|
||||||
if (version >= 17) {
|
if (version >= 17) {
|
||||||
setTimestamp(readU32(is));
|
setTimestampNoChangedFlag(readU32(is));
|
||||||
m_disk_timestamp = m_timestamp;
|
m_disk_timestamp = m_timestamp;
|
||||||
} else {
|
} else {
|
||||||
setTimestamp(BLOCK_TIMESTAMP_UNDEFINED);
|
setTimestampNoChangedFlag(BLOCK_TIMESTAMP_UNDEFINED);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dynamically re-set ids based on node names
|
// Dynamically re-set ids based on node names
|
||||||
|
Loading…
Reference in New Issue
Block a user