mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
fix: no blocks data conversion if no data loss detected
This commit is contained in:
parent
bc05716772
commit
024dccb135
6 changed files with 17 additions and 1 deletions
|
|
@ -81,6 +81,9 @@ std::shared_ptr<ContentReport> ContentReport::create(
|
|||
);
|
||||
}
|
||||
}
|
||||
if (layout != *def->dataStruct) {
|
||||
report->dataLayoutsUpdated = true;
|
||||
}
|
||||
report->blocksDataLayouts[name] = std::move(layout);
|
||||
}
|
||||
|
||||
|
|
@ -89,7 +92,7 @@ std::shared_ptr<ContentReport> ContentReport::create(
|
|||
if (report->isUpgradeRequired() ||
|
||||
report->hasContentReorder() ||
|
||||
report->hasMissingContent() ||
|
||||
report->hasDataLoss()) {
|
||||
report->hasUpdatedLayouts()) {
|
||||
return report;
|
||||
} else {
|
||||
return nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue