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")}",
|
"-Xmx${project.properties.getOrDefault("nonsense.gameHeap", "2048M")}",
|
||||||
"-Dnonsense.development=true",
|
"-Dnonsense.development=true",
|
||||||
"-Dnonsense.plugin.minecraft.gameJar=${NonsenseGradlePlugin.remappedGameJarPath}",
|
"-Dnonsense.plugin.minecraft.gameJar=${NonsenseGradlePlugin.remappedGameJarPath}",
|
||||||
"-Dlog4j.configurationFile=$log4jPath"
|
"-Dlog4j2.configurationFile=$log4jPath"
|
||||||
),
|
), if (env == Env.CLIENT) {
|
||||||
arrayOf(
|
arrayOf(
|
||||||
"--assetsDir", assetPath.toString(),
|
"--assetsDir", assetPath.toString(),
|
||||||
"--version", "Nonsense",
|
"--version", "Nonsense",
|
||||||
"--assetIndex", indexId,
|
"--assetIndex", indexId,
|
||||||
"--accessToken", "0"
|
"--accessToken", "0"
|
||||||
)
|
)
|
||||||
|
} else arrayOf("--nogui")
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,12 +36,14 @@ abstract class RunGameTask @Inject constructor(env: Env) : JavaExec() {
|
||||||
}
|
}
|
||||||
argumentProviders.add(
|
argumentProviders.add(
|
||||||
CommandLineArgumentProvider {
|
CommandLineArgumentProvider {
|
||||||
|
if (env == Env.CLIENT) {
|
||||||
listOf(
|
listOf(
|
||||||
"--assetsDir", assetPath.toString(),
|
"--assetsDir", assetPath.toString(),
|
||||||
"--version", "Nonsense",
|
"--version", "Nonsense",
|
||||||
"--assetIndex", indexId,
|
"--assetIndex", indexId,
|
||||||
"--accessToken", "0"
|
"--accessToken", "0"
|
||||||
)
|
)
|
||||||
|
} else listOf("--nogui")
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -53,7 +55,7 @@ abstract class RunGameTask @Inject constructor(env: Env) : JavaExec() {
|
||||||
"-Xmx${project.properties.getOrDefault("nonsense.gameHeap", "2048M")}",
|
"-Xmx${project.properties.getOrDefault("nonsense.gameHeap", "2048M")}",
|
||||||
"-Dnonsense.development=true",
|
"-Dnonsense.development=true",
|
||||||
"-Dnonsense.plugin.minecraft.gameJar=${NonsenseGradlePlugin.remappedGameJarPath}",
|
"-Dnonsense.plugin.minecraft.gameJar=${NonsenseGradlePlugin.remappedGameJarPath}",
|
||||||
"-Dlog4j.configurationFile=$log4jPath",
|
"-Dlog4j2.configurationFile=$log4jPath",
|
||||||
writeArgFile()
|
writeArgFile()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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>
|
<Appenders>
|
||||||
|
|
||||||
<!-- System out -->
|
<!-- System out -->
|
||||||
|
|
Loading…
Reference in a new issue