diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2017-08-24 21:26:30 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2017-08-24 21:26:30 +1000 |
commit | 53fae197e09ad256e7ad66331f8f82a3469b28d7 (patch) | |
tree | 98855d8cc943727b6ae301dfdc92b32f06b6ee5c /src/Java/gtPlusPlus/GTplusplus.java | |
parent | 7778a680a63a9a6f77978b0dcc300517509ae245 (diff) | |
download | GT5-Unofficial-53fae197e09ad256e7ad66331f8f82a3469b28d7.tar.gz GT5-Unofficial-53fae197e09ad256e7ad66331f8f82a3469b28d7.tar.bz2 GT5-Unofficial-53fae197e09ad256e7ad66331f8f82a3469b28d7.zip |
$ Fixed version checker not working as intended due to invalid network checking.
% Tweaked LFTR Controller recipe, replacing screen with a Computer Cube.
Diffstat (limited to 'src/Java/gtPlusPlus/GTplusplus.java')
-rw-r--r-- | src/Java/gtPlusPlus/GTplusplus.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/GTplusplus.java b/src/Java/gtPlusPlus/GTplusplus.java index bd79aeb764..4afbde44d2 100644 --- a/src/Java/gtPlusPlus/GTplusplus.java +++ b/src/Java/gtPlusPlus/GTplusplus.java @@ -33,7 +33,9 @@ import gtPlusPlus.core.item.general.RF2EU_Battery; import gtPlusPlus.core.lib.CORE; import gtPlusPlus.core.material.gregtech.CustomGTMaterials; import gtPlusPlus.core.util.Utils; +import gtPlusPlus.core.util.geo.GeoUtils; import gtPlusPlus.core.util.item.ItemUtils; +import gtPlusPlus.core.util.networking.NetworkUtils; import gtPlusPlus.core.util.reflect.ReflectionUtils; import gtPlusPlus.xmod.gregtech.common.Meta_GT_Proxy; import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock; @@ -197,6 +199,10 @@ public class GTplusplus implements ActionListener { public void preInit(final FMLPreInitializationEvent event) { Utils.LOG_INFO("Loading " + CORE.name + " V" + CORE.VERSION); + //HTTP Requests + CORE.MASTER_VERSION = NetworkUtils.getContentFromURL("https://raw.githubusercontent.com/draknyte1/GTplusplus/master/Recommended.txt").toLowerCase(); + CORE.USER_COUNTRY = GeoUtils.determineUsersCountry(); + // Handle GT++ Config handleConfigFile(event); |