Move a variable decleration

This commit is contained in:
James Seibel
2020-09-27 10:15:09 -05:00
parent 7f049e8bf2
commit 5d2e426089
2 changed files with 40 additions and 2 deletions
@@ -206,9 +206,8 @@ public class LodChunk
int startZ, int endZ,
int dataIndex, int y)
{
int layerBlocks;
// search through this layer
layerBlocks = 0;
int layerBlocks = 0;
for(int x = startX; x < endX; x++)
{
@@ -0,0 +1,39 @@
package backsun.lod.objects;
/**
* A LodRegion is the a 32x32
* 2D array of LodChunk objects.
* Each LodRegion corresponds to
* one file in the file system.
*
* @author James Seibel
*
*/
public class LodRegion
{
/** X coordinate of this region */
private int x;
/** Z coordinate of this region */
private int z;
public LodChunk data[][] = new LodChunk[32][32];
public LodRegion(int regionX, int regionZ)
{
x = regionX;
z = regionZ;
}
public int getX()
{
return x;
}
public int getZ()
{
return z;
}
}