This commit is contained in:
parent
47effc79f2
commit
9360e2e4d6
|
@ -40,7 +40,7 @@ class PhytotelmaPlugin : Plugin<Project> {
|
|||
println("> Applying FrogMC Gradle Plugin")
|
||||
globalCacheDir = project.gradle.gradleUserHomeDir.resolve("caches/phytotelma/").toPath()
|
||||
globalCacheDir.createDirectories()
|
||||
localCacheDir = project.rootDir.resolve(".gradle/phytotelma/cache/").toPath()
|
||||
localCacheDir = project.projectDir.resolve(".gradle/phytotelma/cache/").toPath()
|
||||
localCacheDir.createDirectories()
|
||||
|
||||
project.plugins.let {
|
||||
|
|
|
@ -71,8 +71,10 @@ abstract class PhytotelmaGradleExtensionImpl: PhytotelmaGradleExtension {
|
|||
RunConfigGenerator.generate(getProject())
|
||||
|
||||
if (applyAW) {
|
||||
println("Applying AccessWideners..")
|
||||
AccessWidener.apply(getProject(), remappedJar)
|
||||
getProject().afterEvaluate {
|
||||
println("Applying AccessWideners..")
|
||||
AccessWidener.apply(getProject(), remappedJar)
|
||||
}
|
||||
}
|
||||
|
||||
println("Done!")
|
||||
|
|
|
@ -34,6 +34,8 @@ object RunConfigGenerator {
|
|||
}
|
||||
val indexId = VersionChecker.downloadAssetIndex(PhytotelmaPlugin.minecraftVersion, assetIndexPath)
|
||||
|
||||
val projectName = if (project.rootDir == project.projectDir) "" else " (${project.name})"
|
||||
|
||||
for (adapter in ADAPTERS) {
|
||||
if (!adapter.shouldGenerate())
|
||||
continue
|
||||
|
@ -41,7 +43,7 @@ object RunConfigGenerator {
|
|||
for (env in Env.entries) {
|
||||
adapter.generate(
|
||||
project,
|
||||
"Minecraft ${env.pascalName}",
|
||||
"Minecraft ${env.pascalName}$projectName",
|
||||
"dev.frogmc.frogloader.impl.launch.${env.id}.Frog${env.pascalName}",
|
||||
mutableListOf(
|
||||
"-Xmx${project.properties.getOrDefault("frogmc.gameHeap", "2048M")}",
|
||||
|
|
Loading…
Reference in a new issue