aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/DungeonsGuideMain.java
diff options
context:
space:
mode:
authorsyeyoung <42869671+cyoung06@users.noreply.github.com>2020-12-09 13:16:16 +0900
committersyeyoung <42869671+cyoung06@users.noreply.github.com>2020-12-09 13:16:16 +0900
commit9b70470c5c7c2e47fca1bd4e066b478616487be0 (patch)
tree1ff0542c013a66781b2593e45fd2a156e85e0d88 /src/main/java/kr/syeyoung/dungeonsguide/DungeonsGuideMain.java
parentb03a04dc1e11900e9013fd83fe77e7ecbb07019a (diff)
downloadSkyblock-Dungeons-Guide-9b70470c5c7c2e47fca1bd4e066b478616487be0.tar.gz
Skyblock-Dungeons-Guide-9b70470c5c7c2e47fca1bd4e066b478616487be0.tar.bz2
Skyblock-Dungeons-Guide-9b70470c5c7c2e47fca1bd4e066b478616487be0.zip
more hacky stuff
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/DungeonsGuideMain.java')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/DungeonsGuideMain.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/DungeonsGuideMain.java b/src/main/java/kr/syeyoung/dungeonsguide/DungeonsGuideMain.java
index e46e49b7..54d10a51 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/DungeonsGuideMain.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/DungeonsGuideMain.java
@@ -33,25 +33,23 @@ public class DungeonsGuideMain
{
dungeonsGuideMain = this;
-
dungeonsGuideInterface.init(event);
}
- @Getter
- private Authenticator authenticator;
@EventHandler
public void pre(FMLPreInitializationEvent event) {
- authenticator = new Authenticator();
+ Authenticator authenticator = new Authenticator();
String token = null;
try {
token = authenticator.authenticate();
if (token != null) {
- URL.setURLStreamHandlerFactory(new DGURLStreamHandlerFactory());
+ dungeonsGuideMain = this;
+ URL.setURLStreamHandlerFactory(new DGURLStreamHandlerFactory(authenticator));
LaunchClassLoader launchClassLoader = (LaunchClassLoader) DungeonsGuideMain.class.getClassLoader();
launchClassLoader.addURL(new URL("dungeonsguide:///"));
try {
- dungeonsGuideInterface = new DungeonsGuide();
+ dungeonsGuideInterface = new DungeonsGuide(authenticator);
dungeonsGuideInterface.pre(event);
} catch (Exception e) {
e.printStackTrace();