Skip to content

Commit

Permalink
fix mc2discord compat (hopefully)
Browse files Browse the repository at this point in the history
closes #21
  • Loading branch information
MelanX committed Dec 20, 2023
1 parent 53bf667 commit 5301022
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -6,5 +6,5 @@ apply from: 'https://moddingx.github.io/ModUtils/v5/mod.gradle'
apply plugin: 'org.moddingx.modgradle.cursedep'

dependencies {
compileOnly curse.mod(325235, 4119891)
implementation curse.mod(325235, 4886408)
}
@@ -1,13 +1,14 @@
package de.melanx.simplebackups.compat;

import ml.denisd3d.mc2discord.core.Mc2Discord;
import de.melanx.simplebackups.SimpleBackups;
import fr.denisd3d.mc2discord.core.MessageManager;
import net.minecraft.network.chat.Component;
import net.minecraftforge.fml.ModList;

public class Mc2DiscordCompat {

public static void announce(Component text) {
Mc2Discord.INSTANCE.messageManager.sendInfoMessage(text.getString());
MessageManager.sendInfoMessage(SimpleBackups.MODID, text.getString());
}

public static boolean isLoaded() {
Expand Down

0 comments on commit 5301022

Please sign in to comment.