summaryrefslogtreecommitdiffstats
path: root/src/main/resources
diff options
context:
space:
mode:
authorAizistral2022-09-18 01:08:03 +0200
committerAizistral2022-09-18 01:08:03 +0200
commit8e221ee3c86df941f647f86dbbb858c93a6178bd (patch)
tree8b3bfe71e8b24eff8f3e30c4d62f75c1d9249474 /src/main/resources
parentff9550b7a68ddd663e418879715481ba98f1a26d (diff)
More work on chat encryption
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/assets/nochatreports/lang/en_us.json4
-rw-r--r--src/main/resources/assets/nochatreports/textures/gui/encrypted_tag.pngbin0 -> 207 bytes
-rw-r--r--src/main/resources/nochatreports.accesswidener6
-rw-r--r--src/main/resources/nochatreports.mixins.json4
4 files changed, 11 insertions, 3 deletions
diff --git a/src/main/resources/assets/nochatreports/lang/en_us.json b/src/main/resources/assets/nochatreports/lang/en_us.json
index 58d07fd..c5920ce 100644
--- a/src/main/resources/assets/nochatreports/lang/en_us.json
+++ b/src/main/resources/assets/nochatreports/lang/en_us.json
@@ -13,9 +13,11 @@
"gui.nochatreports.unsafe_server.check": "Do not show again for this server",
"gui.nochatrepords.reload_config_tooltip": "Reload No Chat Reports config. Use carefully.",
"gui.nochatreports.verified_server": "§a§lSafe Server§r\nWe could verify that this server has No Chat Reports installed, or prevents chat reports in some other known way. You can chat there safely.",
- "gui.nochatreports.ncr_toggle_tooltip": "§lNo Chat Reports:§r %1$s\nDisable or enable most of the mod's client-sided functionality. You may have to do this to join some Paper/Velocity servers, as they are known for causing issues with NCR.\nCertain networking-unrelated things, such as chat trust status tweaks and removal of vanilla's \"Chat messages can't be verified\" toast will still work; they can be disabled in config individually.",
+ "gui.nochatreports.ncr_toggle_tooltip": "§lNo Chat Reports:§r %1$s\nDisable or enable most of the mod's client-sided functionality. You may have to do this to join some Paper/Velocity servers, as they are known for causing issues with NCR.\nCertain networking-unrelated things, such as encryption, chat trust status tweaks and removal of vanilla's \"Chat messages can't be verified\" toast will still work; they can be disabled in config individually.",
"gui.nochatreports.ncr_state_on": "§a§lEnabled§r",
"gui.nochatreports.ncr_state_off": "§c§lDisabled§r",
+ "tag.nochatreports.encrypted": "Encrypted using: %1$s",
+ "tag.nochatreports.encrypted_original": "Undecrypted: %1$s",
"configuration.NoChatReports.config": "No Chat Reports",
diff --git a/src/main/resources/assets/nochatreports/textures/gui/encrypted_tag.png b/src/main/resources/assets/nochatreports/textures/gui/encrypted_tag.png
new file mode 100644
index 0000000..1b4f8c5
--- /dev/null
+++ b/src/main/resources/assets/nochatreports/textures/gui/encrypted_tag.png
Binary files differ
diff --git a/src/main/resources/nochatreports.accesswidener b/src/main/resources/nochatreports.accesswidener
index de7f190..67473bb 100644
--- a/src/main/resources/nochatreports.accesswidener
+++ b/src/main/resources/nochatreports.accesswidener
@@ -5,4 +5,8 @@ accessible field net/minecraft/client/gui/screens/SimpleOptionsSubScreen list Ln
accessible field net/minecraft/client/gui/components/ImageButton xTexStart I
accessible field net/minecraft/client/gui/components/ImageButton yTexStart I
mutable field net/minecraft/client/gui/components/ImageButton xTexStart I
-mutable field net/minecraft/client/gui/components/ImageButton yTexStart I \ No newline at end of file
+mutable field net/minecraft/client/gui/components/ImageButton yTexStart I
+accessible field net/minecraft/network/chat/contents/TranslatableContents args [Ljava/lang/Object;
+mutable field net/minecraft/network/chat/contents/TranslatableContents args [Ljava/lang/Object;
+accessible field net/minecraft/network/chat/MutableComponent contents Lnet/minecraft/network/chat/ComponentContents;
+mutable field net/minecraft/network/chat/MutableComponent contents Lnet/minecraft/network/chat/ComponentContents; \ No newline at end of file
diff --git a/src/main/resources/nochatreports.mixins.json b/src/main/resources/nochatreports.mixins.json
index 113959c..4b877e3 100644
--- a/src/main/resources/nochatreports.mixins.json
+++ b/src/main/resources/nochatreports.mixins.json
@@ -30,7 +30,9 @@
"client.MixinRealmsConnect",
"client.MixinServerData",
"client.MixinServerStatusPinger$1",
- "client.MixinOnlineServerEntry"
+ "client.MixinOnlineServerEntry",
+ "client.MixinChatComponent",
+ "client.MixinGuiMessageTagIcon"
],
"server": [
"server.MixinDedicatedServer"