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:
Ursprung
077968089e
Commit
c6bb15c69b
@ -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
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren