Regenerating code stucks at 99% and then crashes Mcreator randomly

Status
Can not reproduce
Issue description

How to reproduce:

Click on element order in creative tabs

Arrange Order of something

Stucks at 99%

Crashed and everything in the mod has an error (cannot be compiled) if Mcreator is opened again

Prev Bug

https://mcreator.net/comment/123813

Workspace

https://mega.nz/file/HBBkzSjD

qFIKPXXv20-0cNWA7W6w26wSAmxa8d7TXSBZal31jbg

Issue comments

I was still not able to access the download. Please attach the updated link under this ticket. I suggest mediafire, wetransfer or mega. Thank you for the info, your workspace will help a lot as this bug was reported a few times but I was never able to properly replicate it.

I assume this is the workspace after tab switching. Would it be possible to get it in the state before this happened so I could test this:

Click on element order in creative tabs

Arrange Order of something

Stucks at 99%

Compile errors are caused by mod elements with locked code because you changed the mod name. Some variables are bound to mod name instead to modid so changing it causes some problem. Unlock these elements, regenerate code, lock them back and re-apply manual fixes (https://mcreator.net/tracker/issue/60526).

But I would still like to get the workspace that causes tab switching to get stuck:

I assume this is the workspace after tab switching. Would it be possible to get it in the state before this happened so I could test this:

Click on element order in creative tabs

Arrange Order of something

Stucks at 99%

The workspace you attached does not get stuck when I switch tabs.

I see you can run the mod once, quit, then perform that option.

If you just open the software and reaargange the order, it doesn't crash.

Just Like the drawing bug

Also procedures sometimes don't apply well after running the mod first then changing them

It could be Mac. The problem is that I do not own one so I can not always test this. I can't afford one either so I have to test when I can get hands-on one from friends for example.

If the crash on 99% happens again, please provide the contents of mcreator.log here in the comments and I will reopen the ticket.

The actual build problem is caused by the locked code as I explained in the previous comment, though.