mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-25 23:07:50 +00:00
Fix start.cmd can't find grasscutter when modify SERVER_JAR_NAME in start_config.cmd
This commit is contained in:
parent
2ba16cf8b2
commit
f0d728b4e3
@ -33,7 +33,7 @@ if not "%JAVA_PATH%" == "DO_NOT_CHECK_PATH" (
|
|||||||
goto :EXIT
|
goto :EXIT
|
||||||
)
|
)
|
||||||
) else set JAVA_PATH=
|
) else set JAVA_PATH=
|
||||||
if not exist "%SERVER_PATH%grasscutter.jar" (
|
if not exist "%SERVER_PATH%%SERVER_JAR_NAME%" (
|
||||||
call :LOG [ERROR] Server jar not found.
|
call :LOG [ERROR] Server jar not found.
|
||||||
goto :EXIT
|
goto :EXIT
|
||||||
)
|
)
|
||||||
@ -129,7 +129,7 @@ del /f /q "%temp%\db.vbs" >nul 2>nul
|
|||||||
|
|
||||||
:GAME
|
:GAME
|
||||||
call :LOG [INFO] Starting server...
|
call :LOG [INFO] Starting server...
|
||||||
"%JAVA_PATH%java.exe" -jar "%SERVER_PATH%grasscutter.jar"
|
"%JAVA_PATH%java.exe" -jar "%SERVER_PATH%%SERVER_JAR_NAME%"
|
||||||
call :LOG [INFO] Server stopped
|
call :LOG [INFO] Server stopped
|
||||||
|
|
||||||
:EXIT
|
:EXIT
|
||||||
|
Loading…
Reference in New Issue
Block a user