aboutsummaryrefslogtreecommitdiff
path: root/loader
diff options
context:
space:
mode:
Diffstat (limited to 'loader')
-rw-r--r--loader/build.gradle10
-rw-r--r--loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/AuthManager.java2
2 files changed, 8 insertions, 4 deletions
diff --git a/loader/build.gradle b/loader/build.gradle
index a163444b..f1361d6b 100644
--- a/loader/build.gradle
+++ b/loader/build.gradle
@@ -61,9 +61,11 @@ repositories {
configurations {
implementation.extendsFrom shadowImpl
+ modRuntimeOnly.extendsFrom devEnv {
+ transitive = false
+ visible = false
+ }
}
-
-
dependencies {
minecraft("com.mojang:minecraft:1.8.9")
mappings("de.oceanlabs.mcp:mcp_stable:22-1.8.9")
@@ -82,7 +84,9 @@ dependencies {
testAnnotationProcessor "org.projectlombok:lombok:1.18.20"
- modRuntimeOnly("me.djtheredstoner:DevAuth-forge-legacy:1.1.0")
+ devEnv("me.djtheredstoner:DevAuth-forge-legacy:1.1.0")
+ def files= fileTree("../runtime/mods2").filter { it.isFile() }
+ modLocalRuntime(files)
}
diff --git a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/AuthManager.java b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/AuthManager.java
index cc44465d..db9f7513 100644
--- a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/AuthManager.java
+++ b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/AuthManager.java
@@ -87,7 +87,7 @@ public class AuthManager {
boolean shouldReAuth = false;
if (getToken().isUserVerified() && !getToken().getUUID().replace("-", "").equals(Minecraft.getMinecraft().getSession().getPlayerID())) {
shouldReAuth = true;
- }
+ } // TODO: try auth, check if current dungeons guide version is acceisible, and unload it if inaccessible.
if (!getToken().isAuthenticated()) {
shouldReAuth = true;
}