aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/a.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/a.java')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/a.java130
1 files changed, 65 insertions, 65 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/a.java b/src/main/java/kr/syeyoung/dungeonsguide/a.java
index 23875cb7..2ce0e96c 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/a.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/a.java
@@ -40,77 +40,77 @@ public class a
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();
-// } 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));
+ 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) {