addressed couple warnings

This commit is contained in:
cola98765
2021-09-20 11:12:54 +02:00
parent e615674246
commit 6e86a808a5
2 changed files with 5 additions and 5 deletions
@@ -68,7 +68,7 @@ public class SingleLevelContainer implements LevelContainer
return new SingleLevelContainer((byte) (getDetailLevel() - 1));
}
public SingleLevelContainer(byte inputData[])
public SingleLevelContainer(byte[] inputData)
{
int tempIndex;
int index = 0;
@@ -105,7 +105,7 @@ public class SingleLevelContainer implements LevelContainer
int childPosX;
int childPosZ;
long data = 0;
long data;
posX = LevelPosUtil.getRegionModule(detailLevel, posX);
posZ = LevelPosUtil.getRegionModule(detailLevel, posZ);
for (int x = 0; x <= 1; x++)
@@ -73,7 +73,7 @@ public class VerticalLevelContainer implements LevelContainer
return DataPointUtil.doesItExist(getSingleData(posX,posZ));
}
public VerticalLevelContainer(byte inputData[])
public VerticalLevelContainer(byte[] inputData)
{
int tempIndex;
int index = 0;
@@ -84,7 +84,7 @@ public class VerticalLevelContainer implements LevelContainer
index++;
size = (int) Math.pow(2, LodUtil.REGION_DETAIL_LEVEL - detailLevel);
this.dataContainer = new long[size * size * maxVerticalData];
int x, y, z = 0;
int x, y, z;
for (x = 0; x < size; x++)
{
for (z = 0; z < size; z++)
@@ -157,7 +157,7 @@ public class VerticalLevelContainer implements LevelContainer
index++;
tempData[index] = (byte) maxVerticalData;
index++;
int x, y, z = 0;
int x, y, z;
for (x = 0; x < size; x++)
{
for (z = 0; z < size; z++)