mirror of
https://github.com/PuzzleMC/Puzzle.git
synced 2025-12-15 19:35:10 +01:00
Fix update checker once again
This commit is contained in:
@@ -10,7 +10,7 @@ public class PuzzleCore implements ClientModInitializer {
|
||||
public final static String name = "Puzzle";
|
||||
public final static String id = "puzzle";
|
||||
public final static String website = "https://github.com/TeamMidnightDust/Puzzle";
|
||||
public static String updateURL = website + "download";
|
||||
public static String updateURL = website; //+"download";
|
||||
|
||||
public final static String UPDATE_URL = "https://raw.githubusercontent.com/TeamMidnightDust/Puzzle/1.17/puzzle_versions.json";
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ public class UpdateChecker {
|
||||
}).thenAcceptAsync(versionMap -> {
|
||||
if (versionMap != null && versionMap.containsKey(minecraftVersion)) {
|
||||
latestVersion = versionMap.get(minecraftVersion);
|
||||
if (!latestVersion.equals(minecraftVersion)) {
|
||||
if (!latestVersion.equals(PuzzleCore.version)) {
|
||||
isUpToDate = false;
|
||||
PuzzleCore.updateURL = PuzzleCore.website + "download/" + latestVersion.replace(PuzzleCore.name + " ","");
|
||||
logger.log(Level.INFO, "There is a newer version of "+ PuzzleCore.name +" available: " + latestVersion);
|
||||
|
||||
Reference in New Issue
Block a user