Skip to content

Commit

Permalink
always show alpha/beta updates when using one
Browse files Browse the repository at this point in the history
  • Loading branch information
fayer3 committed Jun 15, 2024
1 parent 34b1c72 commit ff05aea
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ public static boolean checkForUpdates() {
String currentVersionNumber = Xplat.getModVersion() + "-" + Xplat.getModloader();
Version current = new Version(currentVersionNumber, currentVersionNumber, "");

// enforce update notifications if using a non release
if (current.alpha > 0 && updateType != 'a') {
updateType = 'a';
} else if (current.beta > 0 && updateType != 'a') {
updateType = 'b';
}

for (Version v : versions) {
if (v.isVersionType(updateType) && current.compareTo(v) > 0) {
changelog += "§a" + v.fullVersion + "§r" + ": \n" + v.changelog + "\n\n";
Expand Down

0 comments on commit ff05aea

Please sign in to comment.