Compare the custom gcode z to `0.5*(layer_z[n] + layer_z[n+1])` instead of `EPSILON` to compensate float rounding error during gcode processing (SoftFever/OrcaSlicer#7834)