Skip to content

Commit

Permalink
Downgrade for 1.19.2
Browse files Browse the repository at this point in the history
Signed-off-by: ErdbeerbaerLP <[email protected]>
  • Loading branch information
ErdbeerbaerLP committed Aug 13, 2023
1 parent a40949d commit 36d8e67
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ dependencies {
}

// ========= Minecraft Forge =============
minecraft "net.minecraftforge:forge:${project.mcVersion}-45.1.0"
minecraft "net.minecraftforge:forge:${project.mcVersion}-43.2.21"

//Mixin
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
# This is required to provide enough memory for the Minecraft decompilation process.
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false
changelog=Large discord integration rewrite adding new features and fixing long existing bugs\nOld configuration can be used as-is
changelog=Large discord integration rewrite adding new features and fixing long existing bugs Old configuration can be used as-is\n\nFixed linking not being saved\nOptimized code\n\nNOTE: This version may contain lots of console spam
releaseType = ALPHA
mcVersion = 1.19.4
mcVersion = 1.19.2
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import net.dv8tion.jda.api.interactions.InteractionHook;
import net.minecraft.network.chat.ChatType;
import net.minecraft.network.chat.Component;
import net.minecraft.network.chat.OutgoingChatMessage;
import net.minecraft.network.protocol.game.ServerboundChatPacket;
import net.minecraftforge.common.util.FakePlayer;
import net.minecraftforge.server.ServerLifecycleHooks;

Expand Down Expand Up @@ -61,8 +61,8 @@ public void sendSystemMessage(Component p_240560_, boolean p_240545_) {
}

@Override
public void sendChatMessage(OutgoingChatMessage p_249852_, boolean p_250110_, ChatType.Bound p_252108_) {
message.append(textComponentToDiscordMessage(p_249852_.content())).append("\n");
public void displayClientMessage(Component chatComponent, boolean actionBar) {
message.append(textComponentToDiscordMessage(chatComponent)).append("\n");
if (cmdMessage == null)
cmdMsg.thenAccept((msg) -> {
cmdMessage = msg.editOriginal(message.toString().trim()).submit();
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
modLoader = "javafml" #mandatory
# A version range to match for said mod loader - for regular FML @Mod it will be the forge version
loaderVersion = "[41,)" #mandatory
loaderVersion = "[43,)" #mandatory
license = "MIT License"
# A URL to refer people to when problems occur with this mod
issueTrackerURL = "https://github.com/ErdbeerbaerLP/Discord-Chat-Integration/issues" #optional
Expand Down Expand Up @@ -29,6 +29,6 @@ side = "SERVER"
[[dependencies.dcintegration]]
modId = "forge"
mandatory = true
versionRange = "[41.1.0,)"
versionRange = "[43.2.0,)"
ordering = "NONE"
side = "BOTH"
6 changes: 5 additions & 1 deletion update_checker.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
[
{
"version": "3.0.2",
"changelog": "Fixed linking not being saved\nOptimized code",
"type": "alpha"
},{
"version": "3.0.0",
"changelog": "Added new event handling methods for addons\nOtherwise mostly a bug fix update\nDon't forget to use 'discord migrate' in console when updating from below 2.6.0",
"changelog": "Large discord integration rewrite adding new features and fixing long existing bugs Old configuration can be used as-is",
"type": "alpha"
},{
"version": "2.6.4",
Expand Down

0 comments on commit 36d8e67

Please sign in to comment.