Skip to content

Commit fa7c9d9

Browse files
committed
recompile pt1
1 parent 66630da commit fa7c9d9

2 files changed

Lines changed: 8 additions & 11 deletions

File tree

-6.53 KB
Binary file not shown.

src/main/java/tech/nully/PluginInstaller/Installer.java

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,14 @@ public boolean IsValidLink(String url) throws IOException{
3232
public static void InstallUpdater() throws IOException {
3333
File file = new File(Main.getInstance().getDataFolder().getParent() + "/EaglerPluginUpdater.jar");
3434
System.out.println("Check 1 passed");
35-
if (!(file.exists())) {
36-
System.out.println("Check 2 passed");
37-
try {
38-
InputStream in = URI.create("https://github.com/darverdevs/EaglerPluginUpdater/raw/main/out/artifacts/EaglerPluginUpdater_jar/EaglerPluginUpdater.jar")
39-
.toURL().openStream();
40-
System.out.println("Check 3 passed");
41-
Installer ins = new Installer();
42-
ins.InstallPlugin(in, "EaglerPluginUpdater");
43-
} catch (IOException e) {
44-
System.out.println("Invalid Link");
45-
}
35+
try {
36+
InputStream in = URI.create("https://github.com/darverdevs/EaglerPluginUpdater/raw/main/out/artifacts/EaglerPluginUpdater_jar/EaglerPluginUpdater.jar")
37+
.toURL().openStream();
38+
System.out.println("Check 3 passed");
39+
Installer ins = new Installer();
40+
ins.InstallPlugin(in, "EaglerPluginUpdater");
41+
} catch (IOException e) {
42+
System.out.println("Invalid Link");
4643
}
4744
}
4845
}

0 commit comments

Comments
 (0)