if (
world0->blockExists(x-1,y,z,world0->xOffset-location.x,world0->yOffset-location.y,world0->zOffset-location.z)==true &&
world0->blockGetAmount(x-1,y,z,world0->xOffset-location.x,world0->yOffset-location.y,world0->zOffset-location.z)==-1
)
{
}
else
{
code
}I am trying to clean up this code along with 14 other files. However I can't afford to have the wrong answer.
So what would the if statement need to change to so code can be in the standard if and not the else?
It wouldn't be this, because the && complicates it:
if ( world0->blockExists(x-1,y,z,world0->xOffset-location.x,world0->yOffset-location.y,world0->zOffset-location.z)==false && world0->blockGetAmount(x-1,y,z,world0->xOffset-location.x,world0->yOffset-location.y,world0->zOffset-location.z)!=-1 )







