From 7ceb735ceda71bdef542773c4b3e95b0eeba6d35 Mon Sep 17 00:00:00 2001 From: Draknyte1 Date: Sun, 11 Sep 2016 00:28:12 +1000 Subject: - Disabled the Skookum Choocher once more. + Added utilities to check the mod version online against my github. + Added a warning if the mod is out of date, to update. --- src/Java/gtPlusPlus/core/util/Utils.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Java/gtPlusPlus/core/util') diff --git a/src/Java/gtPlusPlus/core/util/Utils.java b/src/Java/gtPlusPlus/core/util/Utils.java index f6430cc75d..80d7fd06d5 100644 --- a/src/Java/gtPlusPlus/core/util/Utils.java +++ b/src/Java/gtPlusPlus/core/util/Utils.java @@ -8,6 +8,7 @@ import gtPlusPlus.core.lib.CORE; import gtPlusPlus.core.util.fluid.FluidUtils; import gtPlusPlus.core.util.item.UtilsItems; import gtPlusPlus.core.util.math.MathUtils; +import gtPlusPlus.core.util.networking.NetworkUtils; import ic2.core.IC2Potion; import ic2.core.Ic2Items; import ic2.core.init.InternalName; @@ -57,6 +58,13 @@ public class Utils { Utils.LOG_WARNING("Timer expired."); } } + + public static boolean isModUpToDate(){ + if (NetworkUtils.getContentFromURL("https://raw.githubusercontent.com/draknyte1/GTplusplus/master/Recommended.txt") == CORE.VERSION){ + return true; + } + return false; + } public static TC_AspectStack getTcAspectStack (TC_Aspects aspect, int size){ -- cgit