summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/aizistral/nochatreports
diff options
context:
space:
mode:
authorAizistral2022-06-25 13:55:30 +0200
committerAizistral2022-06-25 13:55:30 +0200
commitd6bf4c5d3ab95c1860a4741864a3aef1c30bf790 (patch)
treee2ed411643cf9dae801629b39c6c63ac7faeb4b8 /src/main/java/com/aizistral/nochatreports
parente796318b72223b816329193a667136970b529d16 (diff)
Commence work on 1.19.1 port
Diffstat (limited to 'src/main/java/com/aizistral/nochatreports')
-rw-r--r--src/main/java/com/aizistral/nochatreports/mixins/MixinServerGamePacketListenerImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/aizistral/nochatreports/mixins/MixinServerGamePacketListenerImpl.java b/src/main/java/com/aizistral/nochatreports/mixins/MixinServerGamePacketListenerImpl.java
index 229977c..92a13fe 100644
--- a/src/main/java/com/aizistral/nochatreports/mixins/MixinServerGamePacketListenerImpl.java
+++ b/src/main/java/com/aizistral/nochatreports/mixins/MixinServerGamePacketListenerImpl.java
@@ -4,8 +4,8 @@ import com.aizistral.nochatreports.NoChatReports;
import com.aizistral.nochatreports.handlers.NoReportsConfig;
import net.minecraft.core.Registry;
-import net.minecraft.network.chat.ChatDecoration;
import net.minecraft.network.chat.ChatType;
+import net.minecraft.network.chat.ChatTypeDecoration;
import net.minecraft.network.chat.Component;
import net.minecraft.network.protocol.Packet;
import net.minecraft.network.protocol.game.ClientboundPlayerChatPacket;
@@ -37,7 +37,7 @@ public abstract class MixinServerGamePacketListenerImpl implements ServerPlayerC
if (NoReportsConfig.convertsToGameMessage()) {
if (packet instanceof ClientboundPlayerChatPacket chat) {
Component component = chat.unsignedContent().orElse(chat.signedContent());
- component = ChatDecoration.withSender("chat.type.text").decorate(component, chat.sender());
+ component = ChatTypeDecoration.withSender("chat.type.text").decorate(component, chat.sender());
packet = new ClientboundSystemChatPacket(component, this.resolveChatTypeID(ChatType.SYSTEM));
info.cancel();