File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
src/main/kotlin/platform/neoforge/version Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 2828- [ #2282 ] ( https://github.com/minecraft-dev/MinecraftDev/issues/2282 ) Mixin support confusion with ` $ ` and ` . ` separators in class names
2929- Recent NeoModDev version import errors
3030- Recommended Artifact ID value was not sanitized properly
31+ - NeoForge versions in the Architectury were not being matched correctly for the first version of a major Minecraft release
3132
3233## [ 1.8.0]
3334
Original file line number Diff line number Diff line change @@ -48,7 +48,11 @@ class NeoForgeVersion private constructor(val versions: List<String>) {
4848 fun getNeoForgeVersions (mcVersion : SemanticVersion ): List <SemanticVersion > {
4949 val versionText = mcVersion.toString()
5050 // Drop the 1. part of the mc version
51- val shortMcVersion = versionText.substringAfter(' .' )
51+ var shortMcVersion = versionText.substringAfter(' .' )
52+ if (! shortMcVersion.contains(' .' )) {
53+ // Ensure we have the .0 part
54+ shortMcVersion = " $shortMcVersion .0"
55+ }
5256 val toList = versions.asSequence()
5357 .filter { it.substringBeforeLast(' .' ) == shortMcVersion }
5458 .mapNotNull(SemanticVersion ::tryParse)
You can’t perform that action at this time.
0 commit comments