aboutsummaryrefslogtreecommitdiff
path: root/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2022-11-18 03:23:23 +0900
committersyeyoung <cyoung06@naver.com>2022-11-18 03:23:23 +0900
commit687a179eb178f7e1d1d5d30c92028ddf745357b6 (patch)
tree73bb54d85c172d733d017833e953d34d3e2eb6ba /loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java
parentcf705024fe4e54f8ffcab74a08c21fe9fc89e9dd (diff)
downloadSkyblock-Dungeons-Guide-687a179eb178f7e1d1d5d30c92028ddf745357b6.tar.gz
Skyblock-Dungeons-Guide-687a179eb178f7e1d1d5d30c92028ddf745357b6.tar.bz2
Skyblock-Dungeons-Guide-687a179eb178f7e1d1d5d30c92028ddf745357b6.zip
- Unload first then null out.
- Fix broken condition in Main.obtainLoader Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java')
-rwxr-xr-xloader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java
index 2ada9dc8..5724dfa3 100755
--- a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java
+++ b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java
@@ -231,7 +231,7 @@ public class Main
try {
unload();
load(newLoader);
- } catch (DungeonsGuideLoadingException | DungeonsGuideUnloadingException | UnsupportedOperationException e) {
+ } catch (DungeonsGuideLoadingException | DungeonsGuideUnloadingException e) {
dgInterface = null;
currentLoader = null;
@@ -255,10 +255,10 @@ public class Main
String loader = getLoaderName(configuration);
if ("local".equals(loader) ||
- (loader.equals("auto") && this.getClass().getResourceAsStream("/kr/syeyoung/dungeonsguide/DungeonsGuide.class") == null)) {
+ (loader.equals("auto") && this.getClass().getResourceAsStream("/kr/syeyoung/dungeonsguide/DungeonsGuide.class") != null)) {
return new LocalLoader();
} else if ("jar".equals(loader) ||
- (loader.equals("auto") && this.getClass().getResourceAsStream("/mod.jar") == null)) {
+ (loader.equals("auto") && this.getClass().getResourceAsStream("/mod.jar") != null)) {
return new JarLoader();
} else if (loader.equals("remote") || loader.equals("auto") ){
// remote load