Skip to content

Commit

Permalink
fix: Fixed the option to disable the update checker
Browse files Browse the repository at this point in the history
fixes #56
  • Loading branch information
4drian3d committed May 15, 2023
1 parent 0dec606 commit 08cf400
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -26,6 +26,9 @@ public record UpdateCheckerTask(EpicGuard epicGuard) implements Runnable {

@Override
public void run() {
if (!epicGuard.config().misc().updateChecker()) {
return;
}
VersionUtils.checkForUpdates(latest ->
this.epicGuard.logger().info(this.epicGuard.messages().updateAvailable()
.replace("{NEWVER}", latest)
Expand Down

0 comments on commit 08cf400

Please sign in to comment.