The repeal by this code of any provision of law codified herein shall not affect any existing vested rights thereunder or any contract, permit, lease, or agreement entered into under any such provision of law, nor shall it affect the rights or duties of any purchaser of State lands sold prior to the effective date of such codification.