mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Weather backward compatibility
This commit is contained in:
parent
0e89bca173
commit
06cdce1e12
11 changed files with 63 additions and 32 deletions
|
@ -691,7 +691,7 @@ bool DecoSchematic::loadSchematicFile() {
|
|||
|
||||
delete schematic;
|
||||
schematic = new MapNode[nodecount];
|
||||
MapNode::deSerializeBulk(is, SER_FMT_VER_HIGHEST, schematic,
|
||||
MapNode::deSerializeBulk(is, SER_FMT_VER_HIGHEST_READ, schematic,
|
||||
nodecount, 2, 2, true);
|
||||
|
||||
return true;
|
||||
|
@ -738,7 +738,7 @@ void DecoSchematic::saveSchematicFile(INodeDefManager *ndef) {
|
|||
os << serializeString(ndef->get(usednodes[i]).name); // node names
|
||||
|
||||
// compressed bulk node data
|
||||
MapNode::serializeBulk(os, SER_FMT_VER_HIGHEST, schematic,
|
||||
MapNode::serializeBulk(os, SER_FMT_VER_HIGHEST_WRITE, schematic,
|
||||
nodecount, 2, 2, true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue