From 9daf2d2e248822c8583a9f23dc89ee712da271fb Mon Sep 17 00:00:00 2001 From: Ceikry Date: Sun, 7 Aug 2022 18:20:55 +0000 Subject: [PATCH] Clear anything already passed into _JAVA_OPTIONS so users can't blame us for breaking their own environment. --- launch.bat | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/launch.bat b/launch.bat index 9f5829e..491fe9f 100644 --- a/launch.bat +++ b/launch.bat @@ -1,6 +1,8 @@ @echo off title 2009scape console log +set _JAVA_OPTIONS= + netstat -an | findstr "0.0.0.0:43595" > NUL if %ERRORLEVEL% equ 0 ( echo "Port 43595 is in use. Cannot start the server again." @@ -32,4 +34,4 @@ pushd %~dp0\game popd taskkill /im "mysqld.exe" /f -taskkill /im "java.exe" /f \ No newline at end of file +taskkill /im "java.exe" /f