13
0
geforkt von Mirrors/Velocity

hard over system message chat type for 1.19+

Dieser Commit ist enthalten in:
Shane Freeder 2022-06-22 05:30:27 +01:00
Ursprung 1a1391a519
Commit 0caff79bf8
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: A3F61EA5A085289C

Datei anzeigen

@ -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);
} }