Skip to content

Commit 564f9d0

Browse files
committed
adapt
1 parent d936f69 commit 564f9d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

common.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,12 @@ configurations {
2929
}
3030

3131
dependencies {
32-
def autoImplementation = { dep -> unobfuscated ? implementation(dep) : modImplementation(dep) }
33-
def autoRuntimeOnly = { dep -> unobfuscated ? runtimeOnly(dep) : modRuntimeOnly(dep) }
34-
def autoCompileOnly = { dep -> unobfuscated ? compileOnly(dep) : modCompileOnly(dep) }
32+
def autoImplementation = { Object... args -> unobfuscated ? implementation(*args) : modImplementation(*args) }
33+
def autoRuntimeOnly = { Object... args -> unobfuscated ? runtimeOnly(*args) : modRuntimeOnly(*args) }
34+
def autoCompileOnly = { Object... args -> unobfuscated ? compileOnly(*args) : modCompileOnly(*args) }
3535

3636
// loom
3737
minecraft "com.mojang:minecraft:${project.minecraft_version}"
38-
autoImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
3938
if (!unobfuscated) {
4039
mappings loom.layered() {
4140
officialMojangMappings()
@@ -44,6 +43,7 @@ dependencies {
4443
}
4544
}
4645
}
46+
autoImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
4747

4848
// runtime mods
4949
// if (mcVersion < 11904) {

0 commit comments

Comments
 (0)