mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-02-23 15:49:19 +08:00
hard over system message chat type for 1.19+
This commit is contained in:
parent
1a1391a519
commit
0caff79bf8
@ -132,7 +132,8 @@ public class ChatBuilder {
|
||||
Component msg = component == null ? Component.text(message) : component;
|
||||
|
||||
if (version.compareTo(ProtocolVersion.MINECRAFT_1_19) >= 0) {
|
||||
return new SystemChat(msg, type.getId());
|
||||
// hard override chat > system for now
|
||||
return new SystemChat(msg, type == ChatType.CHAT ? ChatType.SYSTEM.getId() : type.getId());
|
||||
} else {
|
||||
return new LegacyChat(ProtocolUtils.getJsonChatSerializer(version).serialize(msg), type.getId(), identity);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user