aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/util
diff options
context:
space:
mode:
authorAlkalus <draknyte1@hotmail.com>2017-07-06 12:06:35 +1000
committerAlkalus <draknyte1@hotmail.com>2017-07-06 12:06:35 +1000
commit36ab3fa38ba79541eb05720c9687b3b4a71654ac (patch)
treea271dec632a4f447ead6435183cee5a7f1fc1bbb /src/Java/gtPlusPlus/core/util
parente2c046dba313b47717ac0a570d2efb37b1d83503 (diff)
downloadGT5-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.java5
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() {