diff options
| author | Draknyte1 <Draknyte1@hotmail.com> | 2016-09-11 00:28:12 +1000 |
|---|---|---|
| committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-09-11 00:28:12 +1000 |
| commit | 7ceb735ceda71bdef542773c4b3e95b0eeba6d35 (patch) | |
| tree | df8e5526a5123904af79218566933c3cd32d5fcb /src/Java/gtPlusPlus/core/util | |
| parent | 7437cf1d45a4d45688fa4d9afc3e810a8a13a50d (diff) | |
| download | GT5-Unofficial-7ceb735ceda71bdef542773c4b3e95b0eeba6d35.tar.gz GT5-Unofficial-7ceb735ceda71bdef542773c4b3e95b0eeba6d35.tar.bz2 GT5-Unofficial-7ceb735ceda71bdef542773c4b3e95b0eeba6d35.zip | |
- 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.
Diffstat (limited to 'src/Java/gtPlusPlus/core/util')
| -rw-r--r-- | src/Java/gtPlusPlus/core/util/Utils.java | 8 |
1 files changed, 8 insertions, 0 deletions
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){ |
