wouldn't it be better to have
```java
if(world.isAirBlock(x, height, z) && Block.grass.blockID != world.getBlockId(x, height, z) && Block.snow.blockID != world.getBlockId(x, height, z)){
    height--;
} else {
    continueQ=false;
}
```