I'm trying to set up Simple Discord RPC for a Minecraft 1.20.1 modpack, and it's not sending the rich presence to my Discord account. I can see it connecting to my account in the logs and it's also throwing an error saying that it failed to notify event listener. The full issue in the log is attached at the end.
Minecraft Version: 1.20.1
Forge Version: 47.4.10
App Launcher: Modrinth
Simple Discord RPC Version: 4.1.2
CraterLib Version: 1.20-3.1.2+hotfix.1
[23:52:02] [Render thread/ERROR]: Failed to notify event listener for event com.hypherionmc.craterlib.api.events.client.ScreenEvent$Opening in class com.hypherionmc.simplerpc.SimpleRPCClient#screenOpenEvent!
[23:52:02] [Render thread/ERROR]: Trace
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.hypherionmc.craterlib.core.event.CraterEventBus.lambda$registerListenerMethods$1(CraterEventBus.java:44) ~[CraterLib-Forge-1.20-3.1.2+hotfix.1.jar%23515!/:3.1.2+hotfix.1]
at com.hypherionmc.craterlib.core.event.CraterEventBus$ListenerContainer.notifyListener(CraterEventBus.java:127) ~[CraterLib-Forge-1.20-3.1.2+hotfix.1.jar%23515!/:3.1.2+hotfix.1]
at com.hypherionmc.craterlib.core.event.CraterEventBus.postEvent(CraterEventBus.java:25) ~[CraterLib-Forge-1.20-3.1.2+hotfix.1.jar%23515!/:3.1.2+hotfix.1]
at net.minecraft.client.Minecraft.handler$bli000$craterlib$injectScreenOpeningEvent(Minecraft.java:13436) ~[client-1.20.1-20230612.114412-srg.jar%23741!/:?]
at net.minecraft.client.Minecraft.m_91152_(Minecraft.java:1015) ~[client-1.20.1-20230612.114412-srg.jar%23741!/:?]
at net.minecraft.client.Minecraft.m_91358_(Minecraft.java:1567) ~[client-1.20.1-20230612.114412-srg.jar%23741!/:?]
at net.minecraft.client.renderer.GameRenderer.m_109093_(GameRenderer.java:897) ~[client-1.20.1-20230612.114412-srg.jar%23741!/:?]
at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1146) ~[client-1.20.1-20230612.114412-srg.jar%23741!/:?]
at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:718) ~[client-1.20.1-20230612.114412-srg.jar%23741!/:?]
at net.minecraft.client.main.Main.main(Main.java:218) ~[1.20.1-47.4.10.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:111) ~[fmlloader-1.20.1-47.4.10.jar:?]
at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.clientService(CommonLaunchHandler.java:99) ~[fmlloader-1.20.1-47.4.10.jar:?]
at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$makeService$0(CommonClientLaunchHandler.java:25) ~[fmlloader-1.20.1-47.4.10.jar:?]
at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.9.jar:?]
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.9.jar:?]
at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.9.jar:?]
at cpw.mods.modlauncher.Launcher.run(Launcher.java:108) ~[modlauncher-10.0.9.jar:?]
at cpw.mods.modlauncher.Launcher.main(Launcher.java:78) ~[modlauncher-10.0.9.jar:?]
at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.9.jar:?]
at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.9.jar:?]
at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
at com.modrinth.theseus.MinecraftLaunch.relaunch(MinecraftLaunch.java:63) ~[theseus.jar%2386!/:?]
at com.modrinth.theseus.MinecraftLaunch.main(MinecraftLaunch.java:28) ~[theseus.jar%2386!/:?]
Caused by: java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
at com.hypherionmc.craterlib.core.event.CraterEventBus.lambda$registerListenerMethods$1(CraterEventBus.java:42) ~[CraterLib-Forge-1.20-3.1.2+hotfix.1.jar%23515!/:3.1.2+hotfix.1]
... 30 more
Caused by: java.lang.NullPointerException: Cannot invoke "com.hypherionmc.simplerpc.discord.RichPresenceEvents.setRPCState(com.hypherionmc.simplerpc.enums.RichPresenceState)" because the return value of "com.hypherionmc.simplerpc.discord.SimpleRPCCore.getEvents()" is null
at com.hypherionmc.simplerpc.SimpleRPCClient.screenOpenEvent(SimpleRPCClient.java:65) ~[SimpleRPC-4.1.2.jar%23689!/:4.1.2]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
at com.hypherionmc.craterlib.core.event.CraterEventBus.lambda$registerListenerMethods$1(CraterEventBus.java:42) ~[CraterLib-Forge-1.20-3.1.2+hotfix.1.jar%23515!/:3.1.2+hotfix.1]
... 30 more
I'm trying to set up Simple Discord RPC for a Minecraft 1.20.1 modpack, and it's not sending the rich presence to my Discord account. I can see it connecting to my account in the logs and it's also throwing an error saying that it failed to notify event listener. The full issue in the log is attached at the end.
Minecraft Version: 1.20.1
Forge Version: 47.4.10
App Launcher: Modrinth
Simple Discord RPC Version: 4.1.2
CraterLib Version: 1.20-3.1.2+hotfix.1