diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/build.gradle | 6 | ||||
-rw-r--r-- | mod/src/main/java/kr/syeyoung/dungeonsguide/mod/discord/rpc/RichPresenceManager.java | 7 |
2 files changed, 7 insertions, 6 deletions
diff --git a/mod/build.gradle b/mod/build.gradle index 33d028be..466c88b7 100644 --- a/mod/build.gradle +++ b/mod/build.gradle @@ -25,10 +25,16 @@ loom { } } + runConfigs { + named("client") { + ideConfigGenerated(true) + } + } runs { client { runDir = 'runtime' property('devauth.enabled','true') + property('dg.loader', 'devenv') client() } } diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/discord/rpc/RichPresenceManager.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/discord/rpc/RichPresenceManager.java index 1ea17cfe..ff1d0ef2 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/discord/rpc/RichPresenceManager.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/discord/rpc/RichPresenceManager.java @@ -149,12 +149,7 @@ public class RichPresenceManager implements Runnable { if (pointerByReference.getValue() == Pointer.NULL) return -9998; iDiscordCore = new IDiscordCore(pointerByReference.getValue()); - iDiscordCore.SetLogHook.setLogHook(iDiscordCore, EDiscordLogLevel.DiscordLogLevel_Debug, Pointer.NULL, new IDiscordCore.LogHook() { - @Override - public void hook(Pointer hookData, EDiscordLogLevel level, String message) { - System.out.println(message+" - "+level+" - "+hookData); - } - }); + iDiscordCore.SetLogHook.setLogHook(iDiscordCore, EDiscordLogLevel.DiscordLogLevel_Debug, Pointer.NULL, (hookData, level, message) -> System.out.println(message+" - "+level+" - "+hookData)); activityManager = iDiscordCore.GetActivityManager.getActivityManager(iDiscordCore); relationshipManager = iDiscordCore.GetRelationshipManager.getRelationshipManager(iDiscordCore); |