Skip to content

Commit

Permalink
remove unnecessary checks (#3)
Browse files Browse the repository at this point in the history
* Update Internal.java

* format.
  • Loading branch information
portlek authored Aug 26, 2024
1 parent d6b9ec3 commit 878cb47
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
4 changes: 1 addition & 3 deletions common/src/main/java/net/infumia/titleupdater/Internal.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ final class Internal {

static boolean supportsComponents() {
if (Internal.supportsComponent == null) {
Internal.supportsComponent = Version.isPaper() &&
Version.gte(16) &&
Reflection.hasClass("net.kyori.adventure.text.Component");
Internal.supportsComponent = Reflection.hasClass("net.kyori.adventure.text.Component");
}
return Internal.supportsComponent;
}
Expand Down
4 changes: 3 additions & 1 deletion nms/v1.17.1/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ tasks {
}
}

reobfJar { outputJar = layout.buildDirectory.file("libs/${project.name}-${project.version}.jar") }
reobfJar {
outputJar = layout.buildDirectory.file("libs/${project.name}-${project.version}.jar")
}

assemble { dependsOn(reobfJar) }
}
4 changes: 3 additions & 1 deletion nms/v1.18.2/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ tasks {
}
}

reobfJar { outputJar = layout.buildDirectory.file("libs/${project.name}-${project.version}.jar") }
reobfJar {
outputJar = layout.buildDirectory.file("libs/${project.name}-${project.version}.jar")
}

assemble { dependsOn(reobfJar) }
}
4 changes: 3 additions & 1 deletion nms/v1.19.4/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ tasks {
}
}

reobfJar { outputJar = layout.buildDirectory.file("libs/${project.name}-${project.version}.jar") }
reobfJar {
outputJar = layout.buildDirectory.file("libs/${project.name}-${project.version}.jar")
}

assemble { dependsOn(reobfJar) }
}
4 changes: 3 additions & 1 deletion nms/v1.20.6/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ tasks {
}
}

reobfJar { outputJar = layout.buildDirectory.file("libs/${project.name}-${project.version}.jar") }
reobfJar {
outputJar = layout.buildDirectory.file("libs/${project.name}-${project.version}.jar")
}

assemble { dependsOn(reobfJar) }
}
4 changes: 3 additions & 1 deletion nms/v1.21/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ tasks {
}
}

reobfJar { outputJar = layout.buildDirectory.file("libs/${project.name}-${project.version}.jar") }
reobfJar {
outputJar = layout.buildDirectory.file("libs/${project.name}-${project.version}.jar")
}

assemble { dependsOn(reobfJar) }
}

0 comments on commit 878cb47

Please sign in to comment.