3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-12-25 07:40:13 +01:00

Fix cancellation of PlayerChatEvent for key revision GENERIC_V1 (#941)

Dieser Commit ist enthalten in:
Gero 2023-03-09 18:56:09 +01:00 committet von GitHub
Ursprung e08ffa1019
Commit cb1f336d14
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -104,9 +104,11 @@ public class KeyedChatHandler implements
assert playerKey != null;
return pme -> {
PlayerChatEvent.ChatResult chatResult = pme.getResult();
if (!chatResult.isAllowed()
&& playerKey.getKeyRevision().compareTo(IdentifiedKey.Revision.LINKED_V2) >= 0) {
if (!chatResult.isAllowed()) {
if (playerKey.getKeyRevision().compareTo(IdentifiedKey.Revision.LINKED_V2) >= 0) {
// Bad, very bad.
invalidCancel(logger, player);
}
return null;
}