13
0
geforkt von Mirrors/Velocity

Fix unsigned chat breaking decode on PlayerChat. (#730)

Dieser Commit ist enthalten in:
Corey Shupe 2022-06-08 00:12:56 -04:00 committet von GitHub
Ursprung c2b237f196
Commit 04d3ed6820
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -88,7 +88,7 @@ public class PlayerChat implements MinecraftPacket {
salt = Longs.toByteArray(saltLong); salt = Longs.toByteArray(saltLong);
signature = signatureBytes; signature = signatureBytes;
expiry = Instant.ofEpochMilli(expiresAt); expiry = Instant.ofEpochMilli(expiresAt);
} else if (saltLong == 0L && signature.length == 0) { } else if (saltLong == 0L && signatureBytes.length == 0) {
unsigned = true; unsigned = true;
} else { } else {
throw EncryptionUtils.INVALID_SIGNATURE; throw EncryptionUtils.INVALID_SIGNATURE;