From 83665fb67d1a96b6b4cd5ae0bdeb179b7ebc2136 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Mon, 26 Dec 2022 13:47:08 +0900 Subject: - Fix build.gradle (so it really generates launch config stuff) Signed-off-by: syeyoung --- .../dungeonsguide/mod/discord/rpc/RichPresenceManager.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'mod/src/main') 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); -- cgit