diff options
author | Alkalus <draknyte1@hotmail.com> | 2017-07-06 12:06:35 +1000 |
---|---|---|
committer | Alkalus <draknyte1@hotmail.com> | 2017-07-06 12:06:35 +1000 |
commit | 36ab3fa38ba79541eb05720c9687b3b4a71654ac (patch) | |
tree | a271dec632a4f447ead6435183cee5a7f1fc1bbb /src/Java/gtPlusPlus/core/util | |
parent | e2c046dba313b47717ac0a570d2efb37b1d83503 (diff) | |
download | GT5-Unofficial-36ab3fa38ba79541eb05720c9687b3b4a71654ac.tar.gz GT5-Unofficial-36ab3fa38ba79541eb05720c9687b3b4a71654ac.tar.bz2 GT5-Unofficial-36ab3fa38ba79541eb05720c9687b3b4a71654ac.zip |
$ Fixed a weird crash quick where org.apache.http.client.utils.URIBuilder is missing.
- Removed Alloy Mixer.
Diffstat (limited to 'src/Java/gtPlusPlus/core/util')
-rw-r--r-- | src/Java/gtPlusPlus/core/util/geo/GeoUtils.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/core/util/geo/GeoUtils.java b/src/Java/gtPlusPlus/core/util/geo/GeoUtils.java index 701bce24d1..e1dba3b22d 100644 --- a/src/Java/gtPlusPlus/core/util/geo/GeoUtils.java +++ b/src/Java/gtPlusPlus/core/util/geo/GeoUtils.java @@ -11,12 +11,17 @@ import gtPlusPlus.core.util.networking.NetworkUtils; public class GeoUtils { public static String determineUsersCountry(){ + try { if (NetworkUtils.checkNetworkIsAvailableWithValidInterface()){ return getUsersCountry(); } else { return "Offline."; } + } catch (Throwable T){ + Utils.LOG_INFO("Failed to initialise GeoUtils."); + return "Failed."; + } } private static String getUsersIPAddress() { |