Skip to content

Commit

Permalink
do in all sourcesets
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Nov 26, 2022
1 parent 5260987 commit e2ed205
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ class MinecraftDownloader(val project: Project, private val parent: MinecraftPro
project.logger.warn("selecting split-jar client for sourceset client")
parent.client.dependencies.add(
project.dependencies.create(
"${dependency.group}:minecraft:${version}:client"
"net.minecraft:${dependency.name}:${version}:client"
)
)
} else {
project.logger.warn("selecting combined-jar for sourceset client")
parent.client.dependencies.add(
project.dependencies.create(
"${dependency.group}:minecraft:${version}"
"net.minecraft:${dependency.name}:${version}"
)
)
}
Expand All @@ -87,14 +87,14 @@ class MinecraftDownloader(val project: Project, private val parent: MinecraftPro
project.logger.warn("selecting split-jar server for sourceset server")
parent.server.dependencies.add(
project.dependencies.create(
"net.minecraft:minecraft:${version}:server"
"net.minecraft:${dependency.name}:${version}:server"
)
)
} else {
project.logger.warn("selecting combined-jar for sourceset server")
parent.server.dependencies.add(
project.dependencies.create(
"net.minecraft:minecraft:${version}"
"net.minecraft:${dependency.name}:${version}"
)
)
}
Expand All @@ -106,14 +106,14 @@ class MinecraftDownloader(val project: Project, private val parent: MinecraftPro
if (client) {
it.dependencies.add(
project.dependencies.create(
"net.minecraft:minecraft:${version}:client"
"net.minecraft:${dependency.name}:${version}:client"
)
)
}
if (server) {
it.dependencies.add(
project.dependencies.create(
"net.minecraft:minecraft:${version}:server"
"net.minecraft:${dependency.name}:${version}:server"
)
)
}
Expand Down

0 comments on commit e2ed205

Please sign in to comment.