Add support for Java 20
By: md_5 <git@md-5.net>
This commit is contained in:
parent
eb0a08e7f1
commit
c9f381c842
2 changed files with 4 additions and 16 deletions
|
@ -54,7 +54,7 @@
|
|||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm</artifactId>
|
||||
<version>9.3</version>
|
||||
<version>9.4</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<!-- Mojang depends -->
|
||||
|
@ -360,19 +360,7 @@
|
|||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<version>3.2.4</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm</artifactId>
|
||||
<version>9.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-commons</artifactId>
|
||||
<version>9.3</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<version>3.4.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
|
|
|
@ -155,8 +155,8 @@ public class Main {
|
|||
System.err.println("Unsupported Java detected (" + javaVersion + "). This version of Minecraft requires at least Java 17. Check your Java version with the command 'java -version'.");
|
||||
return;
|
||||
}
|
||||
if (javaVersion > 63.0) {
|
||||
System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 19 is supported.");
|
||||
if (javaVersion > 64.0) {
|
||||
System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 20 is supported.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue