mirror of
https://github.com/BX-Team/DivineMC.git
synced 2025-12-28 19:29:09 +00:00
Upstream has released updates that appear to apply and compile correctly Purpur Changes: PurpurMC/Purpur@ad03187 drop exact choice recipe book clicks patch, supercedes #1446 PurpurMC/Purpur@ff126d3 Updated Upstream (Paper) PurpurMC/Purpur@0458d84 Updated Upstream (Paper & Pufferfish) PurpurMC/Purpur@7aa6845 Add option to disable the copper oxidation proximity penalty (#1443)
28 lines
1.6 KiB
Diff
28 lines
1.6 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: NONPLAYT <76615486+NONPLAYT@users.noreply.github.com>
|
|
Date: Wed, 4 Oct 2023 21:06:16 +0300
|
|
Subject: [PATCH] Fix chat signing
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/network/chat/SignedMessageChain.java b/src/main/java/net/minecraft/network/chat/SignedMessageChain.java
|
|
index c0a80824a0307ea673805015119cc834b268f0dc..8ddb1e61237145084f52b74c4419b9cb6b7a8ffa 100644
|
|
--- a/src/main/java/net/minecraft/network/chat/SignedMessageChain.java
|
|
+++ b/src/main/java/net/minecraft/network/chat/SignedMessageChain.java
|
|
@@ -38,15 +38,7 @@ public class SignedMessageChain {
|
|
throw new SignedMessageChain.DecodeException(Component.translatable("chat.disabled.expiredProfileKey"), false);
|
|
} else {
|
|
PlayerChatMessage playerChatMessage = new PlayerChatMessage(signedMessageLink, signature, body, (Component)null, FilterMask.PASS_THROUGH);
|
|
- if (!playerChatMessage.verify(signatureValidator)) {
|
|
- throw new SignedMessageChain.DecodeException(Component.translatable("multiplayer.disconnect.unsigned_chat"), true, org.bukkit.event.player.PlayerKickEvent.Cause.UNSIGNED_CHAT); // Paper - kick event causes
|
|
- } else {
|
|
- if (playerChatMessage.hasExpiredServer(Instant.now())) {
|
|
- LOGGER.warn("Received expired chat: '{}'. Is the client/server system time unsynchronized?", (Object)body.content());
|
|
- }
|
|
-
|
|
- return playerChatMessage;
|
|
- }
|
|
+ return playerChatMessage;
|
|
}
|
|
};
|
|
}
|