in SingleLevelContainer made void chunks save as 1 byte instead of 8

This commit is contained in:
cola98765
2021-09-21 11:33:01 +02:00
parent 688cb3f89a
commit 1f5c3f5bd8
@@ -84,6 +84,9 @@ public class SingleLevelContainer implements LevelContainer
newData = 0;
if (inputData[index] == 0)
index++;
else if (inputData[index] == 3)
newData = 3;
index++;
else if (index + 7 >= inputData.length)
break;
else
@@ -148,6 +151,10 @@ public class SingleLevelContainer implements LevelContainer
{
tempData[index] = 0;
index++;
} else if (dataContainer[x][z] == 3)
{
tempData[index] = 3;
index++;
} else
{
for (tempIndex = 0; tempIndex < 8; tempIndex++)