From ca2914d3a90f9f3001af2113a8e4216b00ea1e45 Mon Sep 17 00:00:00 2001 From: coolGi Date: Tue, 26 Sep 2023 23:11:31 +0930 Subject: [PATCH] Changed update screen to use short sha --- .../common/wrappers/gui/updater/UpdateModScreen.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/gui/updater/UpdateModScreen.java b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/gui/updater/UpdateModScreen.java index ed5235405..8c126027d 100644 --- a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/gui/updater/UpdateModScreen.java +++ b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/gui/updater/UpdateModScreen.java @@ -48,14 +48,14 @@ public class UpdateModScreen extends DhScreen this.newVersionID = newVersionID; switch (Config.Client.Advanced.AutoUpdater.updateBranch.get()) { - case STABLE -> { + case STABLE: currentVer = ModInfo.VERSION; nextVer = ModrinthGetter.releaseNames.get(this.newVersionID); - } - case NIGHTLY -> { - currentVer = ModGitInfo.Git_Main_Commit; - nextVer = this.newVersionID; - } + break; + case NIGHTLY: + currentVer = ModGitInfo.Git_Main_Commit.substring(0,7); + nextVer = this.newVersionID.substring(0,7); + break; } }