Fix BauServer Performance

This commit is contained in:
2025-10-03 09:13:32 +02:00
parent 566a7deee3
commit 88cc06560e
4 changed files with 20 additions and 9 deletions
+10
View File
@@ -50,6 +50,14 @@ class DevServer extends DefaultTask {
@Optional
String checkpointFolder = null
@Input
@Optional
Boolean profile = null
@Input
@Optional
Boolean forceUpgrade = null
DevServer() {
super()
doFirst {
@@ -157,6 +165,8 @@ class DevServer extends DefaultTask {
if (port != null) devPy.append(" --port $port")
if (worldName != null) devPy.append(" -w $template/$worldName")
if (plugins != null) devPy.append(" -p $plugins")
if (profile != null) devPy.append(" --profile")
if (forceUpgrade != null) devPy.append(" --forceUpgrade")
if (jar != null) devPy.append(" --jar $jar")
for (Map.Entry<String, String> dParam : dParams.entrySet()) {
devPy.append(" -D${dParam.key}=${dParam.value}")