3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-09-29 06:30:16 +02:00

Fix command packet wrong mark as unsigned (#810)

Dropping previousMessages will break the chat chain
Dieser Commit ist enthalten in:
James58899 2022-08-03 18:42:43 +08:00 committet von GitHub
Ursprung e5b84ecf1d
Commit 88a5abd26c
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -114,9 +114,6 @@ public class PlayerCommand implements MinecraftPacket {
timestamp = Instant.ofEpochMilli(buf.readLong());
salt = buf.readLong();
if (salt == 0L) {
unsigned = true;
}
int mapSize = ProtocolUtils.readVarInt(buf);
if (mapSize > MAX_NUM_ARGUMENTS) {
@ -152,6 +149,10 @@ public class PlayerCommand implements MinecraftPacket {
}
}
if (salt == 0L && previousMessages.length == 0) {
unsigned = true;
}
}
@Override