Skip to content

Commit

Permalink
fix(bukkit): update checker call duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
Syrent committed Jun 2, 2024
1 parent 5937b12 commit 926cdc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ subprojects {
}

withType<ShadowJar> {
archiveFileName.set("${rootProject.name}-${suffixedVersion}-${this@subprojects.name.removePrefix("sayanvanish-")}.jar")
archiveFileName.set("${rootProject.name}-${commitVersion}-${this@subprojects.name.removePrefix("sayanvanish-")}.jar")
archiveClassifier.set(null as String?)
destinationDirectory.set(file(rootProject.projectDir.path + "/bin"))
from("LICENSE")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class FeatureUpdateChecker(
@Transient var latestRelease: VersionInfo? = null
@Transient var latestSnapshot: VersionInfo? = null

init {
override fun enable() {
runAsync({
if (!isActive()) return@runAsync
log("Checking for updates...")
Expand All @@ -62,6 +62,7 @@ class FeatureUpdateChecker(
}
}
}, 0, checkEveryXMinutes * 60 * 20L)
super.enable()
}

@EventHandler
Expand Down

0 comments on commit 926cdc7

Please sign in to comment.