Skip to content

Commit

Permalink
Fix NG and NMD Minecraft version import
Browse files Browse the repository at this point in the history
  • Loading branch information
RedNesto committed Aug 30, 2024
1 parent 9a6a180 commit ef48c70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ object McpModelNG7Handler : McpModelDataHandler {
val data = resolverCtx.getExtraProject(gradleModule, McpModelNG7::class.java) ?: return

val state = McpModuleSettings.State(
data.neoForgeVersion.substringBeforeLast('.'),
"1." + data.neoForgeVersion.substringBeforeLast('.').removeSuffix(".0"),
null,
data.mappingsFile.absolutePath,
SrgType.TSRG,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ object McpModelNMDHandler : McpModelDataHandler {
val data = resolverCtx.getExtraProject(gradleModule, McpModelNMD::class.java) ?: return

val state = McpModuleSettings.State(
"1." + data.neoForgeVersion.substringBefore('.'),
"1." + data.neoForgeVersion.substringBeforeLast('.').removeSuffix(".0"),
null,
data.mappingsFile?.absolutePath,
SrgType.TSRG,
Expand Down

0 comments on commit ef48c70

Please sign in to comment.