diff options
| author | Aizistral | 2022-06-25 13:55:30 +0200 |
|---|---|---|
| committer | Aizistral | 2022-06-25 13:55:30 +0200 |
| commit | d6bf4c5d3ab95c1860a4741864a3aef1c30bf790 (patch) | |
| tree | e2ed411643cf9dae801629b39c6c63ac7faeb4b8 | |
| parent | e796318b72223b816329193a667136970b529d16 (diff) | |
Commence work on 1.19.1 port
| -rw-r--r-- | gradle.properties | 6 | ||||
| -rw-r--r-- | src/main/java/com/aizistral/nochatreports/mixins/MixinServerGamePacketListenerImpl.java | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gradle.properties b/gradle.properties index fe96aa4..a1c68f6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,8 +4,8 @@ org.gradle.daemon=false # Fabric Properties # check these on https://fabricmc.net/develop -minecraft_version=1.19 -yarn_mappings=1.19+build.4 +minecraft_version=1.19.1-rc1 +yarn_mappings=1.19.1-rc1+build.1 loader_version=0.14.8 # Mod Properties @@ -14,7 +14,7 @@ maven_group=com.aizistral.nochatreports archives_base_name=NoChatReports-FABRIC # Dependencies -fabric_version=0.56.0+1.19 +fabric_version=0.56.3+1.19 # Publishing curse_id=634062 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(); |
