I upgraded to 2020.2 from 1.9.1, and now my mod is completely destroyed.
I had many elements that were manually modified and locked. The sources for non-locked elements were moved to many different subfolders. The mod would not compile, so I reverted back to 1.9.1, did a clean build files, regenerate code and build, and it deleted all my locked elements source code.
Issue comments
I thought redone implied that they will need to be made from scratch. I will improve the wording.
I am once again sorry to hear this happened. I would recommend to make a backup before switching versions and generally having backups, also for cases if you accidentally delete something.
I will consider adding an option to make a full backup before the switch.
I made this page: https://mcreator.net/wiki/locking-code
I explained why files are removed in the first place there too.
I will add the auto-backup feature when updating the MCreator version likely.
I am sorry to hear this happened.
You can not open the mod in the newer version and then back in the old version. This will not work and likely corrupt the workspace.
If one has locked files, it is expected that he is a more advanced user and checks https://mcreator.net/wiki/mcreator-release-notes: