Update display names before formatting chat messages (#5282)

This commit is contained in:
Josh Roy 2023-04-02 18:08:38 -04:00 committed by GitHub
parent ecb1850451
commit 75481925f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ public abstract class AbstractChatHandler {
return;
}
// Ensure we're getting the latest display name
user.setDisplayNick();
// Reuse cached IntermediateChat if available
ChatProcessingCache.ProcessedChat chat = cache.getProcessedChat(event.getPlayer());
if (chat == null) {