From 19edc274ed099fc22a73ff43142e23b8c17bcf07 Mon Sep 17 00:00:00 2001 From: Aizistral Date: Tue, 27 Sep 2022 13:35:56 +0200 Subject: Build 1.19.2-v1.13.2 coming right up --- docs/README.md | 2 +- docs/changelog.html | 6 ++++++ gradle.properties | 2 +- .../aizistral/nochatreports/mixins/client/MixinChatComponent.java | 6 ++++++ 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index 481f58d..7e76235 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,6 +1,6 @@ # No Chat Reports -**Current Version:** 1.19.2-v1.13.1 +**Current Version:** 1.19.2-v1.13.2 **Minecraft Version:** 1.19.2 diff --git a/docs/changelog.html b/docs/changelog.html index 59a0c02..8a38417 100644 --- a/docs/changelog.html +++ b/docs/changelog.html @@ -1,5 +1,11 @@

The Changelog:


+
[Release 1.19.2-v1.13.2]:
+

+ - Added an extra bit of debug logging to help analyze the structure of received chat messages.
+



+ +

[Release 1.19.2-v1.13.1]:

 - Fixed "About Encryption" and "Encryption Settings" GUIs overflowing with huge GUI scaling (#200);
diff --git a/gradle.properties b/gradle.properties index 90a5916..33bfa77 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,7 +9,7 @@ yarn_mappings=1.19.2+build.1 loader_version=0.14.9 # Mod Properties -mod_version=1.19.2-v1.13.1 +mod_version=1.19.2-v1.13.2 maven_group=com.aizistral.nochatreports archives_base_name=NoChatReports-FABRIC diff --git a/src/main/java/com/aizistral/nochatreports/mixins/client/MixinChatComponent.java b/src/main/java/com/aizistral/nochatreports/mixins/client/MixinChatComponent.java index 9df4fd0..9b4b06b 100644 --- a/src/main/java/com/aizistral/nochatreports/mixins/client/MixinChatComponent.java +++ b/src/main/java/com/aizistral/nochatreports/mixins/client/MixinChatComponent.java @@ -7,6 +7,7 @@ import org.spongepowered.asm.mixin.injection.ModifyArgs; import org.spongepowered.asm.mixin.injection.ModifyVariable; import org.spongepowered.asm.mixin.injection.At.Shift; +import com.aizistral.nochatreports.NoChatReports; import com.aizistral.nochatreports.config.NCRConfig; import com.aizistral.nochatreports.config.NCRConfigClient; import com.aizistral.nochatreports.encryption.Encryptor; @@ -63,6 +64,11 @@ public class MixinChatComponent { + "wrapComponents(Lnet/minecraft/network/chat/FormattedText;I" + "Lnet/minecraft/client/gui/Font;)Ljava/util/List;", ordinal = 0)) private FormattedText modifyGUIMessage(FormattedText msg) { + if (NCRConfig.getCommon().enableDebugLog()) { + NoChatReports.LOGGER.info("Adding chat message, structure: " + + Component.Serializer.toStableJson((Component) msg)); + } + var optional = NCRConfig.getEncryption().getEncryptor(); if (optional.isEmpty()) return msg; -- cgit v1.2.3