Skip to content

Commit 044f5bd

Browse files
committed
Initialize inherited MC version info
1 parent 1050005 commit 044f5bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/kotlin/dev/deftu/gradle/utils/mcinfo/MinecraftInfo.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ sealed class MinecraftInfo {
6262

6363
/** inherits all maps and/or versions from the given info */
6464
fun inherit(other: MinecraftInfo) {
65+
other.initialize() // ensure the other is initialized
66+
6567
this.fabricLoaderVersion = other.fabricLoaderVersion
6668
this.fabricLanguageKotlinVersion = other.fabricLanguageKotlinVersion
6769
this.fabricYarnVersions.putAll(other.fabricYarnVersions)

0 commit comments

Comments
 (0)