fix running game server
Some checks failed
Publish to snapshot maven / build (push) Failing after 18s
Some checks failed
Publish to snapshot maven / build (push) Failing after 18s
This commit is contained in:
parent
062b8a0616
commit
bb86b3e38b
|
@ -49,14 +49,15 @@ object RunConfigGenerator {
|
|||
"-Xmx${project.properties.getOrDefault("nonsense.gameHeap", "2048M")}",
|
||||
"-Dnonsense.development=true",
|
||||
"-Dnonsense.plugin.minecraft.gameJar=${NonsenseGradlePlugin.remappedGameJarPath}",
|
||||
"-Dlog4j.configurationFile=$log4jPath"
|
||||
),
|
||||
arrayOf(
|
||||
"--assetsDir", assetPath.toString(),
|
||||
"--version", "Nonsense",
|
||||
"--assetIndex", indexId,
|
||||
"--accessToken", "0"
|
||||
)
|
||||
"-Dlog4j2.configurationFile=$log4jPath"
|
||||
), if (env == Env.CLIENT) {
|
||||
arrayOf(
|
||||
"--assetsDir", assetPath.toString(),
|
||||
"--version", "Nonsense",
|
||||
"--assetIndex", indexId,
|
||||
"--accessToken", "0"
|
||||
)
|
||||
} else arrayOf("--nogui")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,12 +36,14 @@ abstract class RunGameTask @Inject constructor(env: Env) : JavaExec() {
|
|||
}
|
||||
argumentProviders.add(
|
||||
CommandLineArgumentProvider {
|
||||
listOf(
|
||||
"--assetsDir", assetPath.toString(),
|
||||
"--version", "Nonsense",
|
||||
"--assetIndex", indexId,
|
||||
"--accessToken", "0"
|
||||
)
|
||||
if (env == Env.CLIENT) {
|
||||
listOf(
|
||||
"--assetsDir", assetPath.toString(),
|
||||
"--version", "Nonsense",
|
||||
"--assetIndex", indexId,
|
||||
"--accessToken", "0"
|
||||
)
|
||||
} else listOf("--nogui")
|
||||
}
|
||||
)
|
||||
|
||||
|
@ -53,7 +55,7 @@ abstract class RunGameTask @Inject constructor(env: Env) : JavaExec() {
|
|||
"-Xmx${project.properties.getOrDefault("nonsense.gameHeap", "2048M")}",
|
||||
"-Dnonsense.development=true",
|
||||
"-Dnonsense.plugin.minecraft.gameJar=${NonsenseGradlePlugin.remappedGameJarPath}",
|
||||
"-Dlog4j.configurationFile=$log4jPath",
|
||||
"-Dlog4j2.configurationFile=$log4jPath",
|
||||
writeArgFile()
|
||||
)
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Configuration status="WARN" packages="com.mojang.util,net.minecrell.terminalconsole.util">
|
||||
<Configuration status="WARN" packages="com.mojang.util">
|
||||
<Appenders>
|
||||
|
||||
<!-- System out -->
|
||||
|
|
Loading…
Reference in a new issue