mod version number with letters at the end

Started by DECLAN234E on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 21:11, 31. Oct 2023
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
mod version number with letters at the end
Mon, 08/15/2022 - 15:57 (edited)

When i updated to mcreator 2022.1 from 2021.3 i noticed i can no-longer have letters at the end of my mod version number eg. 0.1.5B. I know you can have letters at the end in 1.18.2 because mod like create have letters at the end. Its a very useful feature for if you are adding a small patch to your mod and don't want to up it from 0.1.4 to 0.1.5. instead you can do 0.1.4A to 0.1.4B.

In the menu where you put your mod version number you can still put a letter at the end but mcreator just ignores the letter when adding it to mods.toml.

EDIT:

by downloading the source code i have found where my problem is coming from its WorkspaceSettings.java line 67.

cleanVersionPattern removes letters from the mod version number and by changing it to "[^a-zA-Z0-9.]" fixes my issue.

Edited by DECLAN234E on Mon, 08/15/2022 - 15:57