Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Feb 28, 2024
1 parent 844ed4c commit ae3561b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void provide() throws Exception {
final int requiredMajorJavaVersion = getVersionInfo().javaVersion().majorVersion();
final JavaVersion requiredJavaVersion = JavaVersion.toVersion(requiredMajorJavaVersion);

if (!requiredJavaVersion.isCompatibleWith(JavaVersion.current())) {
if (!JavaVersion.current().isCompatibleWith(requiredJavaVersion)) {
throw new IllegalStateException("Minecraft " + minecraftVersion + " requires Java " + requiredJavaVersion + " but Gradle is using " + JavaVersion.current());
}

Expand Down

0 comments on commit ae3561b

Please sign in to comment.