mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-04 16:19:10 +01:00
32 lines
1.2 KiB
Java
32 lines
1.2 KiB
Java
/*
|
|
* This file ("UpdateChecker.java") is part of the Actually Additions Mod for Minecraft.
|
|
* It is created and owned by Ellpeck and distributed
|
|
* under the Actually Additions License to be found at
|
|
* http://github.com/Ellpeck/ActuallyAdditions/blob/master/README.md
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
*
|
|
* © 2015 Ellpeck
|
|
*/
|
|
|
|
package ellpeck.actuallyadditions.update;
|
|
|
|
import ellpeck.actuallyadditions.config.values.ConfigBoolValues;
|
|
import ellpeck.actuallyadditions.util.ModUtil;
|
|
import ellpeck.actuallyadditions.util.Util;
|
|
|
|
public class UpdateChecker{
|
|
|
|
public static final String DOWNLOAD_LINK = "http://minecraft.curseforge.com/mc-mods/228404-actually-additions/files";
|
|
//Thanks to XDjackieXD for putting together that thing obviously
|
|
public static final String CHANGELOG_LINK = "https://cdn.rawgit.com/XDjackieXD/ActuallyChangelogs/0.9/changelog.html";
|
|
public static boolean checkFailed;
|
|
public static boolean needsUpdateNotify;
|
|
public static String updateVersion;
|
|
|
|
public static void init(){
|
|
if(ConfigBoolValues.DO_UPDATE_CHECK.isEnabled() && !Util.isDevVersion()){
|
|
ModUtil.LOGGER.info("Initializing Update Checker...");
|
|
new ThreadUpdateChecker();
|
|
}
|
|
}
|
|
}
|