Chat Patches

A Minecraft-Fabric client-side mod that touches up a few aspects of Minecraft's mundane chat.
Back to Files

202.6.4

File namechatpatches-202.6.4.jar
Uploader
OBro1961OBro1961
Uploaded
Mar 14, 2024
Downloads
15.3K
Size
1.8 MB
Mod Loaders
FabricQuilt
File ID
5183321
Type
R
Release
Supported game versions
  • 1.20.2

Curse Maven Snippet

Fabric

modImplementation "curse.maven:chatpatches-560042:5183321"

Quilt

modImplementation "curse.maven:chatpatches-560042:5183321"

Learn more about Curse Maven

What's new

## Chat Patches `202.6.4` for Minecraft 1.20.2 on Fabric, Quilt
- Fixed errors with regex input on the search screen not updating the text color
- Made ChatSearchSettings save when the chat screen is closed then reopened; resets on game restart
- Fixed team name colors, prefixes, and suffixes being ignored when `chatNameFormat` is customized ([#115](https://www.github.com/mrbuilder1961/ChatPatches/issues/115))
- Added a new runnable config option to reload the config from disk
- Added a minor optimization to the way messages are modified to largely simplify the process in a few scenarios [prepub impl]
- Switched the text in the search settings screen to use pre-bundled translations (ON/OFF instead of a visual switch)
- Fixed the Copy String \> Copy Raw String button in the copy menu removing &\<code\> formattings
- **Dev notes:**
  - Changed the `CONFIG_PATH` and `CHATLOG_PATH` variables to use the `Path#resolve(String)` method instead of concatenating strings
  - Removed some (now) redundant file constants and references (in `StringTextUtils` and `Config`)
  - Condensed most `make`... methods in `Config` to be less repetitive
  - `formatPlayername(GameProfile)` now accounts for team metadata as mentioned in the #115 fix
  - Capitalized some static final variables
  - Changed some stuff about how the config is initialized, read, and written to disk
  - Refactor StringTextUtils to TextUtils
  - Restructured the powerhouse `ChatHudMixin#modifyMessage(Text, boolean)` method to be more modular with message reconstruction
  - Moved the bulk of the `modifyMessage` method to ChatUtils to help development and greatly ease future troubleshooting
  - Created a new `ChatUtils#getArg(..)` method to avoid the elusive `ClassCastException`s that kept getting thrown
  - Tweaked the `MessageHandlerMixin#cacheGameData` method to use built-in methods instead of rewriting the same thing
  - Removed the `VANILLA_MESSAGE` matcher in `ChatUtils` because it was redundant

This mod has no additional files