The adoption of this chapter shall not affect or impair any permit granted, any act done, offense committed, or right accrued or acquired, or liability, penalty, forfeiture or punishment incurred prior to the effective date of this chapter, or under any prior zoning law of the Town of Cortlandville; but the same may be enjoyed, ascertained, enforced, prosecuted or inflicted as fully, and to the same extent, as if this chapter had not been adopted; and all actions and proceedings commenced under or by virtue of such prior ordinance and pending at the time this chapter takes effect may be prosecuted and defended to final effect, in the same manner as they might have been if this chapter had not been adopted.