Archive incari-client (client, 26.3, clean)
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Fri, 9 Oct 2026 19:21:17 -0400
|
||||
Subject: [PATCH] chat: No secure-chat warnings or marks
|
||||
|
||||
Incari's players join offline-mode servers, where no chat message is
|
||||
signed: the join's "can't be verified" toast and every message's
|
||||
not-secure mark warn about nothing the player can change.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/multiplayer/ClientPacketListener.java b/src/main/java/net/minecraft/client/multiplayer/ClientPacketListener.java
|
||||
index ee6b7cfbbdaec9dc2156348d59ca82e70fc6ce67..33eca288c0364666a69c00099c060c06ac35e05d 100644
|
||||
--- a/src/main/java/net/minecraft/client/multiplayer/ClientPacketListener.java
|
||||
+++ b/src/main/java/net/minecraft/client/multiplayer/ClientPacketListener.java
|
||||
@@ -559,2 +559,5 @@
|
||||
this.serverEnforcesSecureChat = packet.enforcesSecureChat();
|
||||
+ // Incari start: no secure-chat warning; Incari's players join offline-mode servers, which never sign chat
|
||||
+ this.seenInsecureChatWarning = true;
|
||||
+ // Incari end
|
||||
if (this.serverData != null && !this.seenInsecureChatWarning && !this.enforcesSecureChat()) {
|
||||
diff --git a/src/main/java/net/minecraft/client/multiplayer/chat/ChatListener.java b/src/main/java/net/minecraft/client/multiplayer/chat/ChatListener.java
|
||||
index e82aa07132f5402c6ca9bea3e8e96b7b276439ca..981b7f7e0036b053530345e9f9e0ddf71f7e47e5 100644
|
||||
--- a/src/main/java/net/minecraft/client/multiplayer/chat/ChatListener.java
|
||||
+++ b/src/main/java/net/minecraft/client/multiplayer/chat/ChatListener.java
|
||||
@@ -168,3 +168,5 @@
|
||||
if (receiver != null && receiver.chatAbilities().canReceivePlayerMessages()) {
|
||||
- GuiMessageTag tag = trustLevel.createTag(message);
|
||||
+ // Incari start: no not-secure or modified marks; offline-mode servers sign no messages
|
||||
+ GuiMessageTag tag = null;
|
||||
+ // Incari end
|
||||
MessageSignature signature = message.signature();
|
||||
diff --git a/src/main/java/net/minecraft/client/multiplayer/chat/GuiMessageTag.java b/src/main/java/net/minecraft/client/multiplayer/chat/GuiMessageTag.java
|
||||
index 06b9e54bdb5dc0f29154dd9c753b9476b3095973..3d0b7c0ff9980a6d501601ad362b1c856c38d41b 100644
|
||||
--- a/src/main/java/net/minecraft/client/multiplayer/chat/GuiMessageTag.java
|
||||
+++ b/src/main/java/net/minecraft/client/multiplayer/chat/GuiMessageTag.java
|
||||
@@ -24,3 +24,5 @@
|
||||
public static GuiMessageTag system() {
|
||||
- return SYSTEM;
|
||||
+ // Incari start: disable system message indicators
|
||||
+ return null;
|
||||
+ // Incari end
|
||||
}
|
||||
@@ -28,3 +30,5 @@
|
||||
public static GuiMessageTag systemSinglePlayer() {
|
||||
- return SYSTEM_SINGLE_PLAYER;
|
||||
+ // Incari start: disable singleplayer system message indicators
|
||||
+ return null;
|
||||
+ // Incari end
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Tue, 13 Oct 2026 18:32:16 -0400
|
||||
Subject: [PATCH] chat: Login commands' passwords kept out of the command
|
||||
history
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/CommandHistory.java b/src/main/java/net/minecraft/client/CommandHistory.java
|
||||
index e89477e53087da1d5c6433b1a36ff5424e1ded3d..18332ab989adc7b949159f98cb1bbf0b2b0be990 100644
|
||||
--- a/src/main/java/net/minecraft/client/CommandHistory.java
|
||||
+++ b/src/main/java/net/minecraft/client/CommandHistory.java
|
||||
@@ -25,2 +25,5 @@
|
||||
this.lastCommands.addAll(reader.lines().toList());
|
||||
+ // Incari start: passwords saved before HiddenPasswords kept them out are dropped
|
||||
+ this.lastCommands.removeIf(incari.client.gui.HiddenPasswords::hasPassword);
|
||||
+ // Incari end
|
||||
} catch (Exception exception) {
|
||||
diff --git a/src/main/java/net/minecraft/client/gui/components/ChatComponent.java b/src/main/java/net/minecraft/client/gui/components/ChatComponent.java
|
||||
index 2e94103c187c9b5fa1102cb003e3f32980c4f279..319262167035fd15c44d3130575da7b080861177 100644
|
||||
--- a/src/main/java/net/minecraft/client/gui/components/ChatComponent.java
|
||||
+++ b/src/main/java/net/minecraft/client/gui/components/ChatComponent.java
|
||||
@@ -370,2 +370,5 @@
|
||||
public void addRecentChat(final String message) {
|
||||
+ // Incari start: a login command's password kept out of the history (HiddenPasswords)
|
||||
+ if (incari.client.gui.HiddenPasswords.hasPassword(message)) return;
|
||||
+ // Incari end
|
||||
if (!message.equals(this.recentChat.peekLast())) {
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Wed, 4 Nov 2026 19:20:26 -0500
|
||||
Subject: [PATCH] chat: Sign chat with the Microsoft account's key
|
||||
|
||||
Signed-off-by: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/Minecraft.java b/src/main/java/net/minecraft/client/Minecraft.java
|
||||
index 26bc167966e04c64cf4b94ad70bc0bc29417275d..7117115086828a8964bdac09d8327aaf5a80f051 100644
|
||||
--- a/src/main/java/net/minecraft/client/Minecraft.java
|
||||
+++ b/src/main/java/net/minecraft/client/Minecraft.java
|
||||
@@ -2065,3 +2065,5 @@
|
||||
public ProfileKeyPairManager getProfileKeyPairManager() {
|
||||
- return this.profileKeyPairManager;
|
||||
+ // Incari start: the chat key of the account signed in with Microsoft in Edit Profile
|
||||
+ return incari.client.account.MicrosoftProfileKeys.manager(this.profileKeyPairManager);
|
||||
+ // Incari end
|
||||
}
|
||||
Reference in New Issue
Block a user