Skip to content

Commit 3e0950c

Browse files
committed
Fix: NeoForge
1 parent 5b69414 commit 3e0950c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

neoforge/build.gradle.kts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ fun DependencyHandlerScope.setupConfigurations() {
3434
}
3535

3636
includeMod.dependencies.forEach {
37-
modImplementation(it)
38-
include(it)
37+
implementation(it)
3938
}
4039
}
4140

@@ -44,10 +43,10 @@ dependencies {
4443
neoForge("net.neoforged:neoforge:$neoVersion")
4544

4645
// Add dependencies on the required Kotlin modules.
47-
includeLib("thedarkcolour:kotlinforforge:$kotlinForgeVersion")
46+
// includeLib(...)
4847

4948
// Add mods to the mod jar
50-
// includeMod(...)
49+
includeMod("thedarkcolour:kotlinforforge-neoforge:$kotlinForgeVersion")
5150

5251
// Common (Do not touch)
5352
common(project(":common", configuration = "namedElements")) { isTransitive = false }

neoforge/src/main/resources/META-INF/mods.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,23 @@ displayTest = "IGNORE_ALL_VERSION"
1313

1414
[[dependencies.lambda]]
1515
modId = "neoforge"
16+
mandatory = true
1617
type = "required"
1718
versionRange = "[20.2,)"
1819
ordering = "NONE"
1920
side = "CLIENT"
2021

2122
[[dependencies.lambda]]
2223
modId = "minecraft"
24+
mandatory = true
2325
type = "required"
2426
versionRange = "[1.20.2,1.21)"
2527
ordering = "NONE"
2628
side = "CLIENT"
2729

2830
[[dependencies.lambda]]
2931
modId = "kotlinforforge"
32+
mandatory = true
3033
type = "required"
3134
versionRange = "[4,)"
3235
ordering = "AFTER"

0 commit comments

Comments
 (0)