Skip to content

Commit c5f13a4

Browse files
committed
Test: NeoForge
1 parent 436d42d commit c5f13a4

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

neoforge/build.gradle.kts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ base.archivesName.set("${base.archivesName.get()}-neoforge")
1111

1212
loom {
1313
accessWidenerPath.set(project(":common").loom.accessWidenerPath)
14+
neoForge {
15+
enableTransitiveAccessWideners = true
16+
}
1417
}
1518

1619
repositories {
@@ -36,6 +39,7 @@ fun DependencyHandlerScope.setupConfigurations() {
3639

3740
includeMod.dependencies.forEach {
3841
implementation(it)
42+
forgeRuntimeLibrary(it)
3943
include(it)
4044
}
4145
}
@@ -75,5 +79,12 @@ tasks {
7579

7680
remapJar {
7781
atAccessWideners.add("lambda.accesswidener")
82+
injectAccessWidener.set(true)
83+
}
84+
85+
sourceSets.forEach {
86+
val dir = layout.buildDirectory.dir("sourcesSets/${it.name}")
87+
it.output.setResourcesDir(dir)
88+
it.java.destinationDirectory.set(dir)
7889
}
7990
}

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ issueTrackerURL = "https://github.com/lambda-client/lambda/issues"
1313
logoFile = "assets/lambda/lambda.png"
1414
displayTest = "IGNORE_ALL_VERSION"
1515

16+
[[mixins]]
17+
config = "lambda.mixins.common.json"
18+
1619
[[dependencies.lambda]]
1720
modId = "neoforge"
1821
mandatory = true
@@ -36,7 +39,3 @@ issueTrackerURL = "https://github.com/lambda-client/lambda/issues"
3639
versionRange = "[4.10,)"
3740
ordering = "NONE"
3841
side = "CLIENT"
39-
40-
[[mixins]]
41-
config = "lambda.mixins.common.json"
42-
environment = "client"

0 commit comments

Comments
 (0)