Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
liplum committed Dec 25, 2023
1 parent 5623233 commit 294d19f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions main/src/plugin/Run.kt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class MindustryRunPlugin : Plugin<Project> {
if (dataDirLocalProp != null) LocalDataDirLoc(dataDirLocalProp)
else client.dataDir
)
mindustryFile.set(proj.provider {
gameFile.set(proj.provider {
resolveClient.get().outputs.files.singleFile
})
val modpack = x.findModpackByName(client.modpack)
Expand Down Expand Up @@ -105,7 +105,7 @@ class MindustryRunPlugin : Plugin<Project> {
if (dataDirLocalProp != null) LocalDataDirLoc(dataDirLocalProp)
else server.dataDir
)
mindustryFile.set(proj.provider {
gameFile.set(proj.provider {
resolveServer.get().outputs.files.singleFile
})
val modpack = x.findModpackByName(server.modpack)
Expand Down
1 change: 0 additions & 1 deletion main/src/task/ModHjsonGenerate.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import io.github.liplum.dsl.prop
import io.github.liplum.mindustry.ModMeta.Companion.toHjson
import org.gradle.api.DefaultTask
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.Optional
import org.gradle.api.tasks.OutputFile
import org.gradle.api.tasks.TaskAction

Expand Down
2 changes: 1 addition & 1 deletion main/src/task/RunClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ open class RunClient : RunMindustryAbstract() {
}
}
standardInput = System.`in`
args = listOf(mindustryFile.get().absolutePath) + startupArgs.get()
args = listOf(gameFile.get().absolutePath) + startupArgs.get()
if (Os.isFamily(Os.FAMILY_MAC)) {
// Lwjgl3 application requires it to run on macOS
jvmArgs = (jvmArgs ?: mutableListOf()) + "-XstartOnFirstThread"
Expand Down
2 changes: 1 addition & 1 deletion main/src/task/RunMindustryAbstract.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import io.github.liplum.dsl.stringsProp
import org.gradle.api.tasks.*

abstract class RunMindustryAbstract : JavaExec() {
val mindustryFile = project.fileProp()
val gameFile = project.fileProp()
@InputFile get
val dataDir = project.prop<IDataDirLoc>()
@Optional @Input get
Expand Down
2 changes: 1 addition & 1 deletion main/src/task/RunServer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ open class RunServer : RunMindustryAbstract() {
}
}
standardInput = System.`in`
args = listOf(mindustryFile.get().absolutePath) + startupArgs.get()
args = listOf(gameFile.get().absolutePath) + startupArgs.get()
workingDir = dataDir
logger.lifecycle("Run server in $dataDir.")
// run Mindustry
Expand Down

0 comments on commit 294d19f

Please sign in to comment.