Skip to content

Commit aa2ae43

Browse files
committed
Make Java 8 compatible
1 parent 6c0e92f commit aa2ae43

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ The mod works by increasing the Thread count used for pinging servers. It also c
1212
<br>
1313

1414
Inspired by: https://github.com/Nixuge/ServerlistBufferFixer
15+
16+
## Compilation
17+
You will need Java 17 to compile, blame Fabric. Output will work fine with Java 8 though.
18+
./gradlew build

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ processResources {
2727
}
2828

2929
tasks.withType(JavaCompile).configureEach {
30-
it.options.release = 17
30+
it.options.release = 8
3131
}
3232

3333
java {
3434
withSourcesJar()
3535

36-
sourceCompatibility = JavaVersion.VERSION_17
37-
targetCompatibility = JavaVersion.VERSION_17
36+
sourceCompatibility = JavaVersion.VERSION_1_8
37+
targetCompatibility = JavaVersion.VERSION_1_8
3838
}
3939

4040
jar {

src/main/resources/fabric.mod.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
],
2222
"depends": {
2323
"fabricloader": ">=0.14.21",
24-
"minecraft": ">=1.18",
25-
"java": ">=17"
24+
"minecraft": "*",
25+
"java": ">=8"
2626
}
2727
}

src/main/resources/serverpingerfixer.mixins.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"required": true,
33
"package": "me.wolfii.serverpingerfixer.mixin",
4-
"compatibilityLevel": "JAVA_17",
4+
"compatibilityLevel": "JAVA_8",
55
"mixins": [
66
],
77
"injectors": {

0 commit comments

Comments
 (0)