Skip to content

Commit ef48c70

Browse files
committed
Fix NG and NMD Minecraft version import
1 parent 9a6a180 commit ef48c70

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/kotlin/platform/mcp/gradle/datahandler/McpModelNG7Handler.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ object McpModelNG7Handler : McpModelDataHandler {
4545
val data = resolverCtx.getExtraProject(gradleModule, McpModelNG7::class.java) ?: return
4646

4747
val state = McpModuleSettings.State(
48-
data.neoForgeVersion.substringBeforeLast('.'),
48+
"1." + data.neoForgeVersion.substringBeforeLast('.').removeSuffix(".0"),
4949
null,
5050
data.mappingsFile.absolutePath,
5151
SrgType.TSRG,

src/main/kotlin/platform/mcp/gradle/datahandler/McpModelNMDHandler.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ object McpModelNMDHandler : McpModelDataHandler {
4545
val data = resolverCtx.getExtraProject(gradleModule, McpModelNMD::class.java) ?: return
4646

4747
val state = McpModuleSettings.State(
48-
"1." + data.neoForgeVersion.substringBefore('.'),
48+
"1." + data.neoForgeVersion.substringBeforeLast('.').removeSuffix(".0"),
4949
null,
5050
data.mappingsFile?.absolutePath,
5151
SrgType.TSRG,

0 commit comments

Comments
 (0)