fix running game server
Some checks failed
Publish to snapshot maven / build (push) Failing after 18s

This commit is contained in:
moehreag 2024-05-20 14:24:00 +02:00
parent 062b8a0616
commit bb86b3e38b
3 changed files with 19 additions and 16 deletions

View file

@ -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")
)
}
}

View file

@ -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()
)

View file

@ -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 -->