From 4276f95b9530b456573188629597fc1fd95e8259 Mon Sep 17 00:00:00 2001 From: HaHaWTH <102713261+HaHaWTH@users.noreply.github.com> Date: Sat, 28 Sep 2024 23:48:50 +0800 Subject: [PATCH] correction --- bukkit/src/main/java/io/wdsj/asw/bukkit/update/Updater.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bukkit/src/main/java/io/wdsj/asw/bukkit/update/Updater.java b/bukkit/src/main/java/io/wdsj/asw/bukkit/update/Updater.java index 2905568..dd85f6e 100644 --- a/bukkit/src/main/java/io/wdsj/asw/bukkit/update/Updater.java +++ b/bukkit/src/main/java/io/wdsj/asw/bukkit/update/Updater.java @@ -66,7 +66,7 @@ protected boolean isDevUpdateAvailable() { InputStreamReader reader = new InputStreamReader(connection.getInputStream()); JsonObject jsonObject = new JsonParser().parse(reader).getAsJsonObject(); String latestHash = jsonObject.get("sha").getAsString(); - latestVersion = latestHash.substring(0, 6); + latestVersion = latestHash.substring(0, 7); currentVersion = PluginVersionTemplate.COMMIT_HASH_SHORT; isUpdateAvailable = !PluginVersionTemplate.COMMIT_HASH.equals(latestHash); return isUpdateAvailable;