Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-16 21:10:30 +01:00
hard over system message chat type for 1.19+
Dieser Commit ist enthalten in:
Ursprung
1a1391a519
Commit
0caff79bf8
@ -132,7 +132,8 @@ public class ChatBuilder {
|
|||||||
Component msg = component == null ? Component.text(message) : component;
|
Component msg = component == null ? Component.text(message) : component;
|
||||||
|
|
||||||
if (version.compareTo(ProtocolVersion.MINECRAFT_1_19) >= 0) {
|
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 {
|
} else {
|
||||||
return new LegacyChat(ProtocolUtils.getJsonChatSerializer(version).serialize(msg), type.getId(), identity);
|
return new LegacyChat(ProtocolUtils.getJsonChatSerializer(version).serialize(msg), type.getId(), identity);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren