aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/a.java
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-03-24 20:51:58 +0900
committersyeyoung <cyong06@naver.com>2021-03-24 20:51:58 +0900
commit7ef6b91f1e82cb29be0a542f0cf2339123e66bf9 (patch)
tree341476fb03522af89b5c325ee011c0775137ab72 /src/main/java/kr/syeyoung/dungeonsguide/a.java
parent0fd1db8571a2215499f671b447e20f335ef6c00f (diff)
downloadSkyblock-Dungeons-Guide-7ef6b91f1e82cb29be0a542f0cf2339123e66bf9.tar.gz
Skyblock-Dungeons-Guide-7ef6b91f1e82cb29be0a542f0cf2339123e66bf9.tar.bz2
Skyblock-Dungeons-Guide-7ef6b91f1e82cb29be0a542f0cf2339123e66bf9.zip
Jar Integrity check, + pog things
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/a.java')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/a.java27
1 files changed, 4 insertions, 23 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/a.java b/src/main/java/kr/syeyoung/dungeonsguide/a.java
index d5e8f383..0a93da76 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/a.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/a.java
@@ -22,6 +22,7 @@ import java.io.*;
import java.net.URL;
import java.security.*;
import java.security.cert.CertificateException;
+import java.security.spec.InvalidKeySpecException;
@Mod(modid = a.b, version = a.c)
public class a
@@ -43,11 +44,11 @@ public class a
@EventHandler
public void a(FMLPreInitializationEvent a) {
- ProgressManager.ProgressBar f = ProgressManager.push("DungeonsGuide", 5);
+ ProgressManager.ProgressBar f = ProgressManager.push("DungeonsGuide", this.getClass().getResourceAsStream("/kr/syeyoung/dungeonsguide/e.class") == null ? 7 : 6);
b b = new b(f);
String c = null;
try {
- c = b.b(this.getClass().getResourceAsStream("/kr/syeyoung/dungeonsguide/e.class") == null);
+ c = b.b(this.getClass().getResourceAsStream("/kr/syeyoung/dungeonsguide/e.class") == null ? "latest" : null);
if (c != null) {
this.a = this;
URL.setURLStreamHandlerFactory(new c(b));
@@ -69,27 +70,7 @@ public class a
}
return;
}
- } catch (IOException e) {
- e.printStackTrace();
- } catch (AuthenticationException e) {
- e.printStackTrace();
- } catch (NoSuchAlgorithmException e) {
- e.printStackTrace();
- } catch (NoSuchPaddingException e) {
- e.printStackTrace();
- } catch (InvalidKeyException e) {
- e.printStackTrace();
- } catch (InvalidAlgorithmParameterException e) {
- e.printStackTrace();
- } catch (IllegalBlockSizeException e) {
- e.printStackTrace();
- } catch (BadPaddingException e) {
- e.printStackTrace();
- } catch (CertificateException e) {
- e.printStackTrace();
- } catch (KeyStoreException e) {
- e.printStackTrace();
- } catch (KeyManagementException e) {
+ } catch (IOException | InvalidAlgorithmParameterException | AuthenticationException | NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException | IllegalBlockSizeException | BadPaddingException | CertificateException | KeyStoreException | KeyManagementException | InvalidKeySpecException | SignatureException e) {
e.printStackTrace();
}