mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix WorldConverter::createBlockFieldsConvertTasks
This commit is contained in:
parent
78e27c812a
commit
fbe992755e
1 changed files with 3 additions and 3 deletions
|
|
@ -109,7 +109,7 @@ void WorldConverter::createBlockFieldsConvertTasks() {
|
||||||
REGION_LAYER_BLOCKS_DATA,
|
REGION_LAYER_BLOCKS_DATA,
|
||||||
ConvertTaskType::CONVERT_BLOCKS_DATA
|
ConvertTaskType::CONVERT_BLOCKS_DATA
|
||||||
);
|
);
|
||||||
break;
|
return;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -189,7 +189,7 @@ void WorldConverter::upgradeRegion(
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldConverter::convertVoxels(const io::path& file, int x, int z) const {
|
void WorldConverter::convertVoxels(const io::path& file, int x, int z) const {
|
||||||
logger.info() << "converting voxels region " << x << "_" << z;
|
logger.info() << "converting voxels in region " << x << "_" << z;
|
||||||
wfile->getRegions().processRegion(x, z, REGION_LAYER_VOXELS,
|
wfile->getRegions().processRegion(x, z, REGION_LAYER_VOXELS,
|
||||||
[=](std::unique_ptr<ubyte[]> data, uint32_t*) {
|
[=](std::unique_ptr<ubyte[]> data, uint32_t*) {
|
||||||
Chunk::convert(data.get(), report.get());
|
Chunk::convert(data.get(), report.get());
|
||||||
|
|
@ -212,7 +212,7 @@ void WorldConverter::convertPlayer(const io::path& file) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldConverter::convertBlocksData(int x, int z, const ContentReport& report) const {
|
void WorldConverter::convertBlocksData(int x, int z, const ContentReport& report) const {
|
||||||
logger.info() << "converting blocks data";
|
logger.info() << "converting blocks data in region " << x << ", " << z;
|
||||||
wfile->getRegions().processBlocksData(x, z,
|
wfile->getRegions().processBlocksData(x, z,
|
||||||
[=](BlocksMetadata* heap, std::unique_ptr<ubyte[]> voxelsData) {
|
[=](BlocksMetadata* heap, std::unique_ptr<ubyte[]> voxelsData) {
|
||||||
Chunk chunk(0, 0);
|
Chunk chunk(0, 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue