diff --git a/pom.xml b/pom.xml index 8f2bb73..3586808 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.fi0x.edct EliteDangerousCarrierTrader - 2.2.0.0 + 2.2.0.1 UTF-8 @@ -139,17 +139,17 @@ io.github.Fi0x JavaLogger - 1.1.10 + 1.1.11 org.openjfx javafx-controls - 19 + 19.0.2.1 org.openjfx javafx-fxml - 19 + 19.0.2.1 org.jsoup @@ -164,7 +164,7 @@ com.akathist.maven.plugins.launch4j launch4j-maven-plugin - 2.2.0 + 2.3.1 org.xerial diff --git a/setup.iss b/setup.iss index e63357f..d0d86fa 100644 --- a/setup.iss +++ b/setup.iss @@ -3,7 +3,7 @@ ; TODO: Update Version info #define MyAppName "Elite Dangerous Carrier Trader" -#define MyAppVersion "2.2.0.0" +#define MyAppVersion "2.2.0.1" #define MyAppPublisher "Fi0x" #define MyAppURL "https://github.com/Fi0x/EDCT" #define MyAppExeName "EDCT.exe" diff --git a/src/main/java/com/fi0x/edct/Main.java b/src/main/java/com/fi0x/edct/Main.java index 076cf64..63cd35a 100644 --- a/src/main/java/com/fi0x/edct/Main.java +++ b/src/main/java/com/fi0x/edct/Main.java @@ -36,7 +36,7 @@ public class Main public static File reddit; public static File discord; //TODO: Update version information - public static final String version = "2.2.0.0";//All.GUI.Logic.Hotfix + public static final String version = "2.2.0.1";//All.GUI.Logic.Hotfix public static final VersionType versionType = VersionType.INSTALLER; public static void main(String[] args) diff --git a/src/main/java/com/fi0x/edct/gui/controller/Settings.java b/src/main/java/com/fi0x/edct/gui/controller/Settings.java index 1452954..6c027cf 100644 --- a/src/main/java/com/fi0x/edct/gui/controller/Settings.java +++ b/src/main/java/com/fi0x/edct/gui/controller/Settings.java @@ -291,7 +291,7 @@ public static void loadSettings() lowProfitBorder = Math.max(lowProfitBorder, 0); highProfitBorder = Math.max(highProfitBorder, 0); maxDataAge = Math.max(maxDataAge, 0); - inaraDelay = Math.max(inaraDelay, 5000); + inaraDelay = Math.max(inaraDelay, 15000); if(shipCargoSpace < 0) shipCargoSpace = 0; } diff --git a/src/main/java/com/fi0x/edct/logic/webrequests/RequestHandler.java b/src/main/java/com/fi0x/edct/logic/webrequests/RequestHandler.java index 327a8ae..73a3466 100644 --- a/src/main/java/com/fi0x/edct/logic/webrequests/RequestHandler.java +++ b/src/main/java/com/fi0x/edct/logic/webrequests/RequestHandler.java @@ -29,17 +29,19 @@ public static String sendHTTPRequest(String endpoint, String requestType, Map parameters, boolean ignore429) throws IOException, InterruptedException, HtmlConnectionException { - if(!canRequest(ignore429)) return null; + if(!canRequest(ignore429)) + return null; endpoint += getParamsString(parameters); URL url = cleanUpUrl(endpoint); HttpURLConnection con = (HttpURLConnection) url.openConnection(); con.setRequestMethod(requestType); + con.setRequestProperty("user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36"); con.setConnectTimeout(5000); con.setReadTimeout(5000); - int status = 0; + int status; try { status = con.getResponseCode(); @@ -67,9 +69,9 @@ public static String sendHTTPRequest(String endpoint, String requestType, Map