Skip to content

Commit

Permalink
Fixed compiler Java version to 17
Browse files Browse the repository at this point in the history
I forgot to make certain 1.20.X compilers use Java 17. Now that's fixed.
  • Loading branch information
TheCSDev committed Jul 24, 2024
1 parent 16e68c0 commit fbe8467
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions betterstats-3-fabric-1.20.1/buildsc.building.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ base
}

/*
* Minecraft 1.20.5 and upwards uses Java 21.
* Minecraft 1.20.4 and below uses Java 17.
*/
tasks.withType(JavaCompile).configureEach
{
it.options.release = 21;
it.options.release = 17;
options.compilerArgs += ['-Xlint:deprecation'];
}

Expand All @@ -31,8 +31,8 @@ java
javadoc.options.encoding = 'UTF-8';
withJavadocJar();

sourceCompatibility = JavaVersion.VERSION_21;
targetCompatibility = JavaVersion.VERSION_21;
sourceCompatibility = JavaVersion.VERSION_17;
targetCompatibility = JavaVersion.VERSION_17;
}

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ else if(MC_CLIENT.currentScreen instanceof TScreenWrapper<?> tsw &&
});
}
break;
case TpslContext.Type.SAME_SERVER_PLAYER:
case SAME_SERVER_PLAYER:
{
//read player name
final var playerName = buffer.readString();
Expand Down
8 changes: 4 additions & 4 deletions betterstats-3-fabric-1.20.2/buildsc.building.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ base
}

/*
* Minecraft 1.20.5 and upwards uses Java 21.
* Minecraft 1.20.4 and below uses Java 17.
*/
tasks.withType(JavaCompile).configureEach
{
it.options.release = 21;
it.options.release = 17;
options.compilerArgs += ['-Xlint:deprecation'];
}

Expand All @@ -31,8 +31,8 @@ java
javadoc.options.encoding = 'UTF-8';
withJavadocJar();

sourceCompatibility = JavaVersion.VERSION_21;
targetCompatibility = JavaVersion.VERSION_21;
sourceCompatibility = JavaVersion.VERSION_17;
targetCompatibility = JavaVersion.VERSION_17;
}

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ else if(MC_CLIENT.currentScreen instanceof TScreenWrapper<?> tsw &&
});
}
break;
case TpslContext.Type.SAME_SERVER_PLAYER:
case SAME_SERVER_PLAYER:
{
//read player name
final var playerName = buffer.readString();
Expand Down
8 changes: 4 additions & 4 deletions betterstats-3-fabric-1.20.4/buildsc.building.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ base
}

/*
* Minecraft 1.20.5 and upwards uses Java 21.
* Minecraft 1.20.4 and below uses Java 17.
*/
tasks.withType(JavaCompile).configureEach
{
it.options.release = 21;
it.options.release = 17;
options.compilerArgs += ['-Xlint:deprecation'];
}

Expand All @@ -31,8 +31,8 @@ java
javadoc.options.encoding = 'UTF-8';
withJavadocJar();

sourceCompatibility = JavaVersion.VERSION_21;
targetCompatibility = JavaVersion.VERSION_21;
sourceCompatibility = JavaVersion.VERSION_17;
targetCompatibility = JavaVersion.VERSION_17;
}

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ else if(MC_CLIENT.currentScreen instanceof TScreenWrapper<?> tsw &&
});
}
break;
case TpslContext.Type.SAME_SERVER_PLAYER:
case SAME_SERVER_PLAYER:
{
//read player name
final var playerName = buffer.readString();
Expand Down

0 comments on commit fbe8467

Please sign in to comment.