File tree Expand file tree Collapse file tree 3 files changed +8
-13
lines changed
src/main/kotlin/com/lambda/fabric Expand file tree Collapse file tree 3 files changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ dependencies {
4545 includeLib(" org.javassist:javassist:3.28.0-GA" )
4646
4747 // Add mods to the mod jar
48+ includeMod(" net.fabricmc.fabric-api:fabric-api:$fabricApiVersion " )
4849 includeMod(" net.fabricmc:fabric-language-kotlin:$kotlinFabricVersion " )
4950
5051 // Common (Do not touch)
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import com.lambda.Lambda.LOG
66import com.lambda.Lambda.MOD_NAME
77import com.lambda.Lambda.VERSION
88
9- class LambdaFabric : ClientModInitializer {
9+ object LambdaFabric : ClientModInitializer {
1010 override fun onInitializeClient () {
1111 Lambda .initialize()
1212 LOG .info(" $MOD_NAME Fabric $VERSION initialized." )
Original file line number Diff line number Diff line change @@ -18,18 +18,6 @@ loom {
1818 extraAccessWideners.add(loom.accessWidenerPath.get().asFile.name)
1919 mixinConfig(" lambda.mixins.common.json" )
2020 }
21-
22- mods {
23- register(" forge" ) {
24- sourceSet(" main" , project(" :forge" ))
25-
26- sourceSets.forEach {
27- val dir = layout.buildDirectory.dir(" sourcesSets/${it.name} " )
28- it.output.setResourcesDir(dir)
29- it.java.destinationDirectory.set(dir)
30- }
31- }
32- }
3321}
3422
3523repositories {
@@ -98,4 +86,10 @@ tasks {
9886 ))
9987 }
10088 }
89+
90+ sourceSets.forEach {
91+ val dir = layout.buildDirectory.dir(" sourcesSets/${it.name} " )
92+ it.output.setResourcesDir(dir)
93+ it.java.destinationDirectory.set(dir)
94+ }
10195}
You can’t perform that action at this time.
0 commit comments