Skip to content

Commit

Permalink
Updated the Update Checker
Browse files Browse the repository at this point in the history
  • Loading branch information
TechnicJelle committed May 4, 2023
1 parent 11a7ac3 commit f7ca814
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<dependency>
<groupId>com.github.TechnicJelle</groupId>
<artifactId>UpdateCheckerJava</artifactId>
<version>v2.0</version>
<version>v2.1</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,8 @@ private void verboseLog(String message) {
public void onEnable() {
new Metrics(this, 16426);

try {
updateChecker = new UpdateChecker("TechnicJelle", "BlueMapFloodgate", getDescription().getVersion());
updateChecker.checkAsync();
} catch (MalformedURLException e) {
throw new RuntimeException(e);
}
updateChecker = new UpdateChecker("TechnicJelle", "BlueMapFloodgate", getDescription().getVersion());
updateChecker.checkAsync();

BlueMapAPI.onEnable(blueMapOnEnableListener);

Expand Down

0 comments on commit f7ca814

Please sign in to comment.