mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-15 22:01:30 -08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
58f46bb75f
1 changed files with 3 additions and 2 deletions
|
|
@ -31,7 +31,8 @@ public class DesktopPlatform extends Platform{
|
|||
if(useDiscord){
|
||||
try{
|
||||
DiscordEventHandlers handlers = new DiscordEventHandlers();
|
||||
DiscordRPC.INSTANCE.Discord_Initialize(applicationId, handlers, true, "");
|
||||
DiscordRPC.INSTANCE.Discord_Initialize(applicationId, handlers, true, "1127400");
|
||||
Log.info("Initialized Discord rich presence.");
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(new Thread(DiscordRPC.INSTANCE::Discord_Shutdown));
|
||||
}catch(Throwable t){
|
||||
|
|
@ -71,8 +72,8 @@ public class DesktopPlatform extends Platform{
|
|||
|
||||
@Override
|
||||
public void updateRPC(){
|
||||
|
||||
if(!useDiscord) return;
|
||||
Log.info("Updating discord RPC status.");
|
||||
|
||||
DiscordRichPresence presence = new DiscordRichPresence();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue