13
0
geforkt von Mirrors/Velocity

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() { public boolean isSigned() {
if (salt == 0) return false; return !argumentSignatures.isEmpty();
return !lastSeenMessages.isEmpty() || !argumentSignatures.isEmpty();
} }
@Override @Override