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.
This commit is contained in:
Gegy
2023-11-27 18:41:57 +01:00
committed by Riley Park
parent 077968089e
commit c6bb15c69b

View File

@@ -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