aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/a.java
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2020-12-18 17:09:45 +0900
committersyeyoung <cyong06@naver.com>2020-12-18 17:09:45 +0900
commit07888566e25bb22e4e66d98059d50a9a33283ac4 (patch)
tree44e54dde275b61e32172eafe488bfb03eb18c85d /src/main/java/kr/syeyoung/dungeonsguide/a.java
parente6f83a23279ba7f2254efa4b49074fbc49bfb054 (diff)
downloadSkyblock-Dungeons-Guide-07888566e25bb22e4e66d98059d50a9a33283ac4.tar.gz
Skyblock-Dungeons-Guide-07888566e25bb22e4e66d98059d50a9a33283ac4.tar.bz2
Skyblock-Dungeons-Guide-07888566e25bb22e4e66d98059d50a9a33283ac4.zip
huh
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/a.java')
-rwxr-xr-x[-rw-r--r--]src/main/java/kr/syeyoung/dungeonsguide/a.java131
1 files changed, 68 insertions, 63 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/a.java b/src/main/java/kr/syeyoung/dungeonsguide/a.java
index 8664ed79..2ce0e96c 100644..100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/a.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/a.java
@@ -19,9 +19,8 @@ import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import java.io.*;
import java.net.URL;
-import java.security.InvalidAlgorithmParameterException;
-import java.security.InvalidKeyException;
-import java.security.NoSuchAlgorithmException;
+import java.security.*;
+import java.security.cert.CertificateException;
@Mod(modid = a.b, version = a.c)
public class a
@@ -40,72 +39,78 @@ public class a
this.a = this;
d.init(a);
}
-//
-// @EventHandler
-// public void a(FMLPreInitializationEvent a) {
-// b b = new b();
-// String c = null;
-// try {
-// c = b.b();
-// if (c != null) {
-// this.a = this;
-// URL.setURLStreamHandlerFactory(new c(b));
-// LaunchClassLoader d = (LaunchClassLoader) a.class.getClassLoader();
-// d.addURL(new URL("z:///"));
-//
-// try {
-// this.d = new e(b);
-// this.d.pre(a);
-// } catch (Exception e) {
-// e.printStackTrace();
-//
-// a(new String[]{
-// "Couldn't load Dungeons Guide",
-// "Please contact developer if this problem persists after restart"
-// });
-// }
-// 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();
-// }
-//
-// a(new String[]{
-// "Can't validate current installation of Dungeons Guide",
-// "Steps to fix",
-// "1. check if other people can't join minecraft servers.",
-// "2. restart minecraft launcher",
-// "3. make sure you're on the right account",
-// "4. restart your computer",
-// "If the problem persists after following these steps, please contact developer",
-// "If you haven't purchased the mod, please consider doing so"
-// });
-// }
+
@EventHandler
- public void pre(FMLPreInitializationEvent event) {
- a = this;
- URL.setURLStreamHandlerFactory(new c(null));
+ public void a(FMLPreInitializationEvent a) {
+ b b = new b();
+ String c = null;
+ try {
+ c = b.b();
+ if (c != null) {
+ this.a = this;
+ URL.setURLStreamHandlerFactory(new c(b));
+ LaunchClassLoader d = (LaunchClassLoader) a.class.getClassLoader();
+ d.addURL(new URL("z:///"));
+
try {
- d = new e(null);
- d.pre(event);
+ this.d = new e(b);
+ this.d.pre(a);
} catch (Exception e) {
e.printStackTrace();
+
+ a(new String[]{
+ "Couldn't load Dungeons Guide",
+ "Please contact developer if this problem persists after restart"
+ });
}
+ 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) {
+ e.printStackTrace();
+ }
+
+ a(new String[]{
+ "Can't validate current installation of Dungeons Guide",
+ "Steps to fix",
+ "1. check if other people can't join minecraft servers.",
+ "2. restart minecraft launcher",
+ "3. make sure you're on the right account",
+ "4. restart your computer",
+ "If the problem persists after following these steps, please contact developer",
+ "If you haven't purchased the mod, please consider doing so"
+ });
}
+// @EventHandler
+// public void pre(FMLPreInitializationEvent event) {
+// a = this;
+// URL.setURLStreamHandlerFactory(new c(null));
+// try {
+// d = new e(null);
+// d.pre(event);
+// } catch (Exception e) {
+// e.printStackTrace();
+// }
+// }
public void a(final String[] a) {
final GuiScreen b = new GuiErrorScreen(null, null) {