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,8 +47,11 @@ public class SystemChatPacket implements MinecraftPacket {
|
|||||||
@Override
|
@Override
|
||||||
public void decode(ByteBuf buf, ProtocolUtils.Direction direction, ProtocolVersion version) {
|
public void decode(ByteBuf buf, ProtocolUtils.Direction direction, ProtocolVersion version) {
|
||||||
component = ComponentHolder.read(buf, 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 = ChatType.values()[ProtocolUtils.readVarInt(buf)];
|
type = buf.readBoolean() ? ChatType.GAME_INFO : ChatType.SYSTEM;
|
||||||
|
} else {
|
||||||
|
type = ChatType.values()[ProtocolUtils.readVarInt(buf)];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren