Skip to content

Commit

Permalink
[FIX] DiscordRPC fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gravit committed Apr 3, 2020
1 parent 674700a commit 8a01cf4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package pro.gravit.launchermodules.discordrpc;

import pro.gravit.launcher.Launcher;
import pro.gravit.launcher.client.events.ClientEngineInitPhase;
import pro.gravit.launcher.client.events.ClientExitPhase;
import pro.gravit.launcher.client.events.ClientPreGuiPhase;
import pro.gravit.launcher.client.events.client.ClientProcessBuilderParamsWrittedEvent;
Expand All @@ -24,7 +25,7 @@ public ClientModule() {
public void init(LauncherInitContext initContext) {

registerEvent(this::clientInit, ClientProcessLaunchEvent.class);
registerEvent(this::launcherInit, ClientPreGuiPhase.class);
registerEvent(this::launcherInit, ClientEngineInitPhase.class);
registerEvent(this::exitHandler, ClientExitPhase.class);
registerEvent(this::exitByStartClient, ClientProcessBuilderParamsWrittedEvent.class);
}
Expand Down Expand Up @@ -53,7 +54,7 @@ private void clientInit(ClientProcessLaunchEvent phase) {
}).start();
}

private void launcherInit(ClientPreGuiPhase phase)
private void launcherInit(ClientEngineInitPhase phase)
{
CommonHelper.newThread("Discord RPC Thread", true, () -> {
try {
Expand Down

0 comments on commit 8a01cf4

Please sign in to comment.