The problem is in this piece of code:
They only way to fix is to delete around 4 if rules which is no option.
Must i report it as a processing bug?
Code:if(checkPos(x-1, y-1, z) == true){//z
if(checkPos(x-1, y, z) == true){
if(checkPos(x-1, y+1, z) == true){
if(checkPos(x, y-1, z) == true){
if(checkPos(x, y+1, z) == true){
if(checkPos(x+1, y-1, z) == true){
if(checkPos(x+1, y, z) == true){
if(checkPos(x+1, y+1, z) == true){
if(checkPos(x, y, z-1) == true){//z-1
if(checkPos(x-1, y, z-1) == true){
if(checkPos(x-1, y+1, z-1) == true){
if(checkPos(x, y-1, z-1) == true){
if(checkPos(x, y+1, z-1) == true){
if(checkPos(x+1, y-1, z-1) == true){
if(checkPos(x+1, y, z-1) == true){
if(checkPos(x+1, y+1, z-1) == true){
if(checkPos(x, y, z-1) == true){//z+1
if(checkPos(x-1, y, z+1) == true){
if(checkPos(x-1, y+1, z+1) == true){
if(checkPos(x, y-1, z+1) == true){
if(checkPos(x, y+1, z+1) == true){
if(checkPos(x+1, y-1, z+1) == true){
if(checkPos(x+1, y, z+1) == true){
if(checkPos(x+1, y+1, z+1) == true){
mVolume = append(mVolume, i);
c++;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
And