geforkt von Mirrors/Velocity
Merge remote-tracking branch 'upstream/dev/3.0.0'
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Dieser Commit ist enthalten in:
Commit
65d3277319
@ -47,9 +47,12 @@ public class SystemChatPacket implements MinecraftPacket {
|
||||
@Override
|
||||
public void decode(ByteBuf buf, ProtocolUtils.Direction direction, ProtocolVersion version) {
|
||||
component = ComponentHolder.read(buf, version);
|
||||
// System chat is never decoded so this doesn't matter for now
|
||||
if (version.noLessThan(ProtocolVersion.MINECRAFT_1_19_1)){
|
||||
type = buf.readBoolean() ? ChatType.GAME_INFO : ChatType.SYSTEM;
|
||||
} else {
|
||||
type = ChatType.values()[ProtocolUtils.readVarInt(buf)];
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void encode(ByteBuf buf, ProtocolUtils.Direction direction, ProtocolVersion version) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren