13
0
geforkt von Mirrors/Velocity

fix: apply message in PlayerChatEvent when handling SessionPlayerChatPacket (#1411)

Fix 1.19.3+ unsigned chat not being changed by `PlayerChatEvent`.
Dieser Commit ist enthalten in:
skbeh 2024-09-14 11:13:57 +00:00 committet von GitHub
Ursprung 6f6d55e9e6
Commit 2299b78ad3
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: B5690EEEBB952194

Datei anzeigen

@ -71,7 +71,8 @@ public class SessionChatHandler implements ChatHandler<SessionPlayerChatPacket>
invalidChange(logger, player);
return null;
}
return this.player.getChatBuilderFactory().builder().message(packet.message)
return this.player.getChatBuilderFactory().builder()
.message(chatResult.getMessage().orElse(packet.getMessage()))
.setTimestamp(packet.timestamp)
.setLastSeenMessages(newLastSeenMessages)
.toServer();