Improve help text on server Java check failure

This commit is contained in:
Paint_Ninja committed 2024-01-20 00:28:02 +00:00
1 parent 870e3ebcab
commit 80286594c5
2 files changed
+5 -3

No files matched your search

+4 -1
View File
@@ -896,7 +896,10 @@ tasks.register('installerJar', InstallerJar) {
}
final var argsFile = rootProject.file('server_files/args.txt')
final Map<String, Map<String, String>> tokens = [tokens: [SHIM_JAR_FILE: serverShimJar.archiveFileName.get()]]
final Map<String, Map<String, String>> tokens = [tokens: [
SHIM_JAR_FILE: serverShimJar.archiveFileName.get(),
MAVEN_PATH: MAVEN_PATH
]]
from(argsFile) {
filter(tokens, ReplaceTokens)
into 'data'
+1 -2
View File
@@ -4,8 +4,7 @@ REM Add custom JVM arguments (such as RAM allocation) to the user_jvm_args.txt
java -jar @SHIM_JAR_FILE@ --onlyCheckJava
if %ERRORLEVEL% NEQ 0 (
echo.
echo Java check failed.
echo If you're struggling to get Java to work, ask for help on the forums or Discord mentioned in the readme.
echo If you're struggling to fix the error above, ask for help on the forums or Discord mentioned in the readme.
goto :exit
)