diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/Main.java b/HMCL/src/main/java/org/jackhuang/hmcl/Main.java index f6961f54c..1dee2d390 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/Main.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/Main.java @@ -55,8 +55,8 @@ public final class Main { } public static void main(String[] args) { - System.setProperty("java.net.useSystemProxies", "true"); - System.setProperty("javafx.autoproxy.disable", "true"); + System.getProperties().putIfAbsent("java.net.useSystemProxies", "true"); + System.getProperties().putIfAbsent("javafx.autoproxy.disable", "true"); System.getProperties().putIfAbsent("http.agent", "HMCL/" + Metadata.VERSION); checkDirectoryPath();