mirror of
https://git.sanhost.net/sanasol/hytale-f2p
synced 2026-02-26 05:41:48 -03:00
Fix community link order: TG Group > TG Channel > Chat
Consistent order across all files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
19
test-wrapper/java-wrapper.bat
Normal file
19
test-wrapper/java-wrapper.bat
Normal file
@@ -0,0 +1,19 @@
|
||||
@echo off
|
||||
setlocal EnableDelayedExpansion
|
||||
|
||||
REM Java wrapper for Windows - strips UseCompactObjectHeaders, adds --disable-sentry
|
||||
REM Uses %* string replacement instead of for-loop to preserve = signs in JVM flags
|
||||
set "REAL_JAVA=%~dp0java-original.exe"
|
||||
set "ARGS=%*"
|
||||
|
||||
REM Strip -XX:+UseCompactObjectHeaders
|
||||
set "ARGS=!ARGS:-XX:+UseCompactObjectHeaders=!"
|
||||
|
||||
REM Check if running HytaleServer.jar and add --disable-sentry
|
||||
echo !ARGS! | findstr /i "HytaleServer.jar" >nul 2>&1
|
||||
if !ERRORLEVEL!==0 (
|
||||
"%REAL_JAVA%" !ARGS! --disable-sentry
|
||||
) else (
|
||||
"%REAL_JAVA%" !ARGS!
|
||||
)
|
||||
exit /b !ERRORLEVEL!
|
||||
Reference in New Issue
Block a user