diff options
| author | Aizistral | 2022-10-24 14:18:13 +0200 |
|---|---|---|
| committer | Aizistral | 2022-10-24 14:18:13 +0200 |
| commit | 8150801a451fa7a6a07f61d7fdc989fc454aa38a (patch) | |
| tree | f5a67ca77f36b8790c990a769e0a59fd7b6f7c54 /src/main | |
| parent | f93888e211bc32dc7ed06c5f40ab9c902f82f9a1 (diff) | |
Add shorcut for sending unencrypted messages
Closes #231
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/java/com/aizistral/nochatreports/mixins/client/MixinChatScreen.java | 2 | ||||
| -rw-r--r-- | src/main/resources/assets/nochatreports/lang/en_us.json | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/aizistral/nochatreports/mixins/client/MixinChatScreen.java b/src/main/java/com/aizistral/nochatreports/mixins/client/MixinChatScreen.java index 8280d7b..7b69957 100644 --- a/src/main/java/com/aizistral/nochatreports/mixins/client/MixinChatScreen.java +++ b/src/main/java/com/aizistral/nochatreports/mixins/client/MixinChatScreen.java @@ -57,7 +57,7 @@ public abstract class MixinChatScreen extends Screen { String message = info.getReturnValue(); NCRConfig.getEncryption().setLastMessage(message); - if (!message.isEmpty() && NCRConfig.getEncryption().shouldEncrypt(message)) { + if (!message.isEmpty() && !Screen.hasControlDown() && NCRConfig.getEncryption().shouldEncrypt(message)) { NCRConfig.getEncryption().getEncryptor().ifPresent(e -> { int index = NCRConfig.getEncryption().getEncryptionStartIndex(message); String noencrypt = message.substring(0, index); diff --git a/src/main/resources/assets/nochatreports/lang/en_us.json b/src/main/resources/assets/nochatreports/lang/en_us.json index 157cbc6..f785157 100644 --- a/src/main/resources/assets/nochatreports/lang/en_us.json +++ b/src/main/resources/assets/nochatreports/lang/en_us.json @@ -20,7 +20,7 @@ "gui.nochatreports.ncr_state_off": "§c§lDisabled§r", "tag.nochatreports.encrypted": "Encrypted using: %1$s", "tag.nochatreports.encrypted_original": "Non-decrypted: %1$s", - "gui.nochatreports.encryption_tooltip": "§lEncryption:§r %1$s\nRight-click to configure.", + "gui.nochatreports.encryption_tooltip": "§lEncryption:§r %1$s\nRight-click to configure.\n\nWhile encryption is enabled, you can prevent it from being applied to the message by holding §n§lCtrl§r when sending it.", "gui.nochatreports.encryption_tooltip_invalid": "§lEncryption:§r %1$s\n§cInvalid configuration. Click to configure.", "gui.nochatreports.encryption_state_on": "§a§lEnabled§r", "gui.nochatreports.encryption_state_off": "§c§lDisabled§r", |
