mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
regions related code moved from WorldFiles to WorldRegions
This commit is contained in:
parent
d2a2f0e8ae
commit
3ebd8f3062
8 changed files with 641 additions and 576 deletions
|
|
@ -24,7 +24,7 @@ WorldConverter::WorldConverter(
|
|||
lut(lut),
|
||||
content(content)
|
||||
{
|
||||
fs::path regionsFolder = wfile->getRegionsFolder(REGION_LAYER_VOXELS);
|
||||
fs::path regionsFolder = wfile->getRegions().getRegionsFolder(REGION_LAYER_VOXELS);
|
||||
if (!fs::is_directory(regionsFolder)) {
|
||||
logger.error() << "nothing to convert";
|
||||
return;
|
||||
|
|
@ -46,7 +46,7 @@ void WorldConverter::convertRegion(fs::path file) {
|
|||
return;
|
||||
}
|
||||
logger.info() << "converting region " << name;
|
||||
wfile->processRegionVoxels(x, z, [=](ubyte* data) {
|
||||
wfile->getRegions().processRegionVoxels(x, z, [=](ubyte* data) {
|
||||
if (lut) {
|
||||
Chunk::convert(data, lut.get());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue