diff options
| author | Aizistral | 2022-09-27 13:35:56 +0200 |
|---|---|---|
| committer | Aizistral | 2022-09-27 13:35:56 +0200 |
| commit | 19edc274ed099fc22a73ff43142e23b8c17bcf07 (patch) | |
| tree | e1ee1456ec7a21e267f7fbc7d6c494f34f646290 | |
| parent | 7dc9db928e24211598ce24233d7f206961f9df6e (diff) | |
Build 1.19.2-v1.13.2 coming right up
| -rw-r--r-- | docs/README.md | 2 | ||||
| -rw-r--r-- | docs/changelog.html | 6 | ||||
| -rw-r--r-- | gradle.properties | 2 | ||||
| -rw-r--r-- | src/main/java/com/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 @@ <h3><b>The Changelog:</b></h3><br/> +<h5><b>[Release 1.19.2-v1.13.2]:</b></h5> +<p> + - Added an extra bit of debug logging to help analyze the structure of received chat messages.<br/> +<p/><br/><br/> + + <h5><b>[Release 1.19.2-v1.13.1]:</b></h5> <p> - Fixed "About Encryption" and "Encryption Settings" GUIs overflowing with huge GUI scaling (<a href="https://github.com/Aizistral-Studios/No-Chat-Reports/issues/200">#200</a>);<br/> 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; |
