3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-09-28 22:21:13 +02:00

Fix: only treat command as signed if it has signatures

The Vanilla client will send 'last seen' even if the message is not signed, so this is much stricter than it needs to be. This should allow commands without any signed arguments to be modified/consumed by the proxy.
Dieser Commit ist enthalten in:
Gegy 2023-11-27 18:41:57 +01:00 committet von Riley Park
Ursprung 077968089e
Commit c6bb15c69b

Datei anzeigen

@ -65,8 +65,7 @@ public class SessionPlayerCommandPacket implements MinecraftPacket {
}
public boolean isSigned() {
if (salt == 0) return false;
return !lastSeenMessages.isEmpty() || !argumentSignatures.isEmpty();
return !argumentSignatures.isEmpty();
}
@Override