: Create a manual save game before opening the editor. Do not rely on autosaves.
If you modify buildings or terrain and want those changes to persist, you must click the Save Mod or Save Changes button within the Shift+F12 overlay before closing it.
Are you trying to fix a with your base, or are you looking to do some creative building in a spot the game usually won't allow?