mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Add support for Java 23
By: md_5 <git@md-5.net>
This commit is contained in:
parent
c8344ab49d
commit
8484d46297
2 changed files with 3 additions and 3 deletions
|
@ -290,7 +290,7 @@
|
|||
<dependency>
|
||||
<groupId>org.mockito</groupId>
|
||||
<artifactId>mockito-core</artifactId>
|
||||
<version>5.11.0</version>
|
||||
<version>5.14.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
|
|
@ -162,8 +162,8 @@ public class Main {
|
|||
}
|
||||
|
||||
float javaVersion = Float.parseFloat(System.getProperty("java.class.version"));
|
||||
if (javaVersion > 66.0) {
|
||||
System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 22 is supported.");
|
||||
if (javaVersion > 67.0) {
|
||||
System.err.println("Unsupported Java detected (" + javaVersion + "). Only up to Java 23 is supported.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue