mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
fix world converter
This commit is contained in:
parent
8f1eae4330
commit
0ad588fd33
8 changed files with 109 additions and 53 deletions
|
|
@ -46,10 +46,14 @@ static void process_blocks_data(
|
|||
report.dataLoss.push_back(name + ": discard data");
|
||||
continue;
|
||||
}
|
||||
auto incapatibility = layout.checkCompatibility(*def->dataStruct);
|
||||
if (!incapatibility.empty()) {
|
||||
if (layout != *def->dataStruct) {
|
||||
ContentIssue issue {ContentIssueType::BLOCK_DATA_LAYOUTS_UPDATE};
|
||||
report.issues.push_back(issue);
|
||||
report.dataLayoutsUpdated = true;
|
||||
}
|
||||
|
||||
auto incapatibility = layout.checkCompatibility(*def->dataStruct);
|
||||
if (!incapatibility.empty()) {
|
||||
for (const auto& error : incapatibility) {
|
||||
report.dataLoss.push_back(
|
||||
"[" + name + "] field " + error.name + " - " +
|
||||
|
|
@ -57,9 +61,6 @@ static void process_blocks_data(
|
|||
);
|
||||
}
|
||||
}
|
||||
if (layout != *def->dataStruct) {
|
||||
report.dataLayoutsUpdated = true;
|
||||
}
|
||||
report.blocksDataLayouts[name] = std::move(layout);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue