File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/main/java/cat/nyaa/nyaacore Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ version = "$majorVersion.$minorVersion.$buildNumber".toString()
30
30
compileJava {
31
31
options. compilerArgs + = [" -Xlint:deprecation" ]
32
32
options. encoding = StandardCharsets . UTF_8 . name()
33
+ options. release. set(17 )
33
34
}
34
35
35
36
java {
@@ -61,7 +62,7 @@ dependencies {
61
62
testImplementation(platform(' org.junit:junit-bom:5.9.0' ))
62
63
testImplementation(' org.junit.jupiter:junit-jupiter' )
63
64
// testImplementation 'junit:junit:4.13.2'
64
- testImplementation ' com.github.seeseemelk:MockBukkit-v1.19:2.119.3 '
65
+ testImplementation ' com.github.seeseemelk:MockBukkit-v1.19:2.120.1 '
65
66
testImplementation ' org.mockito:mockito-core:4.8.0'
66
67
testImplementation ' org.mockito:mockito-junit-jupiter:4.8.0'
67
68
testImplementation ' org.xerial:sqlite-jdbc:3.39.3.0'
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public void onEnable() {
60
60
}
61
61
try {
62
62
var VersionResource = getResource ("MCVersion" );
63
- targetVersion = VersionResource == null ? "" : Arrays . toString (VersionResource .readAllBytes ());
63
+ targetVersion = VersionResource == null ? "" : new String (VersionResource .readAllBytes ());
64
64
getLogger ().info ("target minecraft version:" + targetVersion + "server version:" + serverVersion );
65
65
} catch (Exception e ) {
66
66
throw new RuntimeException (e );
You can’t perform that action at this time.
0 commit comments