diff options
author | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2023-01-14 03:16:22 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-14 03:16:22 +0900 |
commit | ba4ce4e30d5778d0ad00c163823dc5abb8b78b76 (patch) | |
tree | 533cdac7f9ae2b0cc6c9248baf1d783a510d4f58 /loader | |
parent | df33e015ade0be0df3d9ab1e242606dbdc7229ea (diff) | |
download | Skyblock-Dungeons-Guide-ba4ce4e30d5778d0ad00c163823dc5abb8b78b76.tar.gz Skyblock-Dungeons-Guide-ba4ce4e30d5778d0ad00c163823dc5abb8b78b76.tar.bz2 Skyblock-Dungeons-Guide-ba4ce4e30d5778d0ad00c163823dc5abb8b78b76.zip |
Dg4.0 eventpropagation (#270)
* - Event Handler Interface -> Annotations (for features)
Signed-off-by: syeyoung <cyoung06@naver.com>
* - Event Handler Interface -> Annotations (for features)
Signed-off-by: syeyoung <cyoung06@naver.com>
* - profiling
- build.gradle update
Signed-off-by: syeyoung <cyoung06@naver.com>
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'loader')
-rw-r--r-- | loader/build.gradle | 10 | ||||
-rw-r--r-- | loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/auth/AuthManager.java | 2 |
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; } |