Partially implement the new region methods.

This commit is contained in:
James Seibel
2021-01-20 15:52:32 -06:00
parent ed7ca54e41
commit 79e997de94
@@ -68,14 +68,9 @@ public class LodRegionFileHandler
try
{
// convert each line into an LOD object and add it to the region
LodChunk c = new LodChunk(s);
LodChunk lod = new LodChunk(s);
// convert the chunk's world position into
// the region's index position
int x = c.x % 32;
int z = c.z % 32;
region.chunks[x][z] = c;
region.addLod(lod);
}
catch(IllegalArgumentException e)
{
@@ -129,7 +124,9 @@ public class LodRegionFileHandler
FileWriter fw = new FileWriter(f);
for(LodChunk[] chunkArray : region.chunks)
// TODO
/*
for(LodChunk[] chunkArray : region.)
{
for(LodChunk chunk : chunkArray)
{
@@ -140,6 +137,7 @@ public class LodRegionFileHandler
}
}
}
*/
fw.close();
}