mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
add Chunk.encodeV2, decodeV2
This commit is contained in:
parent
cbb0ecd1f6
commit
c18eddb63c
5 changed files with 45 additions and 3 deletions
|
|
@ -161,7 +161,7 @@ void WorldConverter::upgradeRegion(
|
|||
) const {
|
||||
auto path = wfile->getRegions().getRegionFilePath(layer, x, z);
|
||||
auto bytes = files::read_bytes_buffer(path);
|
||||
auto buffer = compatibility::convertRegion2to3(bytes, layer);
|
||||
auto buffer = compatibility::convert_region_2to3(bytes, layer);
|
||||
files::write_bytes(path, buffer.data(), buffer.size());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue