Skip to content

Commit 67c4715

Browse files
committed
Fixed single player with newer Java versions
1 parent a4c65a3 commit 67c4715

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/build.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,11 @@
110110
<!-- java 8 compatible jvm args. Add more heap if you can. -->
111111
<echo message="Using JVM arguments for Java 8 minimum."/>
112112
<echo message="Upgrade to Java 17 or later for better garbage collection."/>
113+
<echo message="Launch with 'ant runserverzgc' if you are already on Java 17 or newer."/>
113114
<java classname="com.openrsc.server.Server" fork="true">
114115
<!-- usage: `ant runserver -DconfFile=preservation` to run server with config file preservation.conf -->
115116
<arg value="${confFile}.conf"/>
116-
<jvmarg line="-Xdiag -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:+UseBiasedLocking -XX:NewSize=64m -DcoloredLogging=${coloredLogging}"/>
117+
<jvmarg line="-XX:+IgnoreUnrecognizedVMOptions -Xdiag -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:+UseBiasedLocking -XX:NewSize=64m -DcoloredLogging=${coloredLogging}"/>
117118
<classpath>
118119
<pathelement location="${lib}/disruptor-3.3.0.jar"/>
119120
<pathelement location="${lib}/log4j-api-2.17.0.jar"/>

0 commit comments

Comments
 (0)