Merge remote-tracking branch 'upstream/dev/3.0.0'
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user