Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-06 00:00:47 +01:00
Fix command packet wrong mark as unsigned (#810)
Dropping previousMessages will break the chat chain
Dieser Commit ist enthalten in:
Ursprung
e5b84ecf1d
Commit
88a5abd26c
@ -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
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren