summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/README.md2
-rw-r--r--docs/changelog.html12
-rw-r--r--gradle.properties2
-rw-r--r--src/main/java/com/aizistral/nochatreports/mixins/client/MixinChatListener.java20
4 files changed, 20 insertions, 16 deletions
diff --git a/docs/README.md b/docs/README.md
index 9cc32b4..1c402ac 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -1,6 +1,6 @@
# No Chat Reports
-**Current Version:** 1.19.1-v1.8.2
+**Current Version:** 1.19.1-v1.8.4
**Minecraft Version:** 1.19.1
diff --git a/docs/changelog.html b/docs/changelog.html
index c4b0e9b..95d9614 100644
--- a/docs/changelog.html
+++ b/docs/changelog.html
@@ -1,5 +1,17 @@
<h3><b>The Changelog:</b></h3><br/>
+<h5><b>[Release 1.19.1-v1.8.4]:</b></h5>
+<p>
+&nbsp;- Ensured change from previous release works properly.<br/>
+<p/><br/><br/>
+
+
+<h5><b>[Release 1.19.1-v1.8.3]:</b></h5>
+<p>
+&nbsp;- Re-allowed client to disconnect when chat chain is broken. Yes, this was the "major exploit" kennytv was talking about, or more specifically - unchecked speculation that even if true, would only apply in very limited number of circumstances.<br/>
+<p/><br/><br/>
+
+
<h5><b>[Release 1.19.1-v1.8.2]:</b></h5>
<p>
&nbsp;- Corrected English and updated German translation (<a href="https://github.com/Aizistral-Studios/No-Chat-Reports/pull/121">thanks WVam, #121</a>);<br/>
diff --git a/gradle.properties b/gradle.properties
index 2825ba7..de782b4 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -9,7 +9,7 @@ yarn_mappings=1.19.1+build.1
loader_version=0.14.8
# Mod Properties
-mod_version=1.19.1-v1.8.2
+mod_version=1.19.1-v1.8.4
maven_group=com.aizistral.nochatreports
archives_base_name=NoChatReports-FABRIC
diff --git a/src/main/java/com/aizistral/nochatreports/mixins/client/MixinChatListener.java b/src/main/java/com/aizistral/nochatreports/mixins/client/MixinChatListener.java
index 274e67e..654d44a 100644
--- a/src/main/java/com/aizistral/nochatreports/mixins/client/MixinChatListener.java
+++ b/src/main/java/com/aizistral/nochatreports/mixins/client/MixinChatListener.java
@@ -44,8 +44,12 @@ public class MixinChatListener {
} else {
var evaluate = ChatTrustLevel.evaluate(playerChatMessage, component, playerInfo, instant);
- if ((evaluate == ChatTrustLevel.NOT_SECURE || evaluate == ChatTrustLevel.BROKEN_CHAIN)
- && NoReportsConfig.hideRedChatIndicators()) {
+ if (evaluate == ChatTrustLevel.BROKEN_CHAIN) {
+ info.setReturnValue(evaluate);
+ return;
+ }
+
+ if (evaluate == ChatTrustLevel.NOT_SECURE && NoReportsConfig.hideRedChatIndicators()) {
info.setReturnValue(ChatTrustLevel.SECURE);
} else if ((evaluate == ChatTrustLevel.FILTERED || evaluate == ChatTrustLevel.MODIFIED)
&& NoReportsConfig.hideYellowChatIndicators()) {
@@ -62,16 +66,4 @@ public class MixinChatListener {
}
}
- /**
- * @reason Prevent client from disconnecting when chat chain is broken.
- * Normal average user will not even understand what happened, so this is absolutely
- * useless for them.
- * @author Aizistral
- */
-
- @Inject(method = "onChatChainBroken", at = @At("HEAD"), cancellable = true)
- private void stopUselessDisconnects(CallbackInfo info) {
- info.cancel();
- }
-
}