Skip to content

Commit

Permalink
Move resource ID to be a separate constant in update checker
Browse files Browse the repository at this point in the history
  • Loading branch information
IanTapply22 committed Jun 21, 2024
1 parent 1ad79a6 commit 713473d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/net/jeqo/bloons/Bloons.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ public void onDisable() {
// Log an initial shutdown message
Logger.logInitialShutdown();

// Unregister all balloons and stop the task if it exists
if (getPlayerSingleBalloons() != null) {
// Unregister all balloons and stop the task
for (SingleBalloon owner : getPlayerSingleBalloons().values()) {
owner.cancel();
}
Expand All @@ -105,8 +105,9 @@ public void onDisable() {
* Not planned to change
*/
public void updateChecker() {
int resourceId = 106243;
if (getConfig().getBoolean("check-for-updates")) {
new UpdateChecker(this, 106243).getVersion(version -> {
new UpdateChecker(this, resourceId).getVersion(version -> {
if (!this.getDescription().getVersion().equals(version)) {
Logger.logUpdateNotificationConsole();
}
Expand Down

0 comments on commit 713473d

Please sign in to comment.