Skip to content

Commit

Permalink
Update restored message indicator
Browse files Browse the repository at this point in the history
Credit: @NotRyken in #215
(note: this may be rescinded if a reason is given from the original PR, as it was closed)
  • Loading branch information
mrbuilder1961 committed Jan 16, 2025
1 parent 49f9414 commit 171a744
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/obro1961/chatpatches/chatlog/ChatLog.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
*/
public class ChatLog {
public static final Path PATH = FabricLoader.getInstance().getGameDir().resolve("logs").resolve("chatlog.json");
public static final MessageIndicator RESTORED_TEXT = new MessageIndicator(0x382fb5, null, null, I18n.translate("text.chatpatches.restored"));
public static final MessageIndicator RESTORED_INDICATOR = new MessageIndicator(0x382fb5, null, Text.translatable("text.chatpatches.restored"), "Restored");

private static final MinecraftClient mc = MinecraftClient.getInstance();

Expand Down Expand Up @@ -244,7 +244,7 @@ public static void restore() {
data.history.forEach(mc.inGameHud.getChatHud()::addToMessageHistory);

if(!data.messages.isEmpty())
data.messages.forEach(msg -> mc.inGameHud.getChatHud().addMessage(msg, null, RESTORED_TEXT));
data.messages.forEach(msg -> mc.inGameHud.getChatHud().addMessage(msg, null, RESTORED_INDICATOR));

restoring = false;

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/chatpatches/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,5 @@
"text.chatpatches.copy.reply": "Reply",
"text.chatpatches.copy.unknownData": "§c§l/§e!§c\\ §r§7Unknown data for '§9%s§7', please report this issue!",

"text.chatpatches.restored": "Restored"
"text.chatpatches.restored": "Restored message"
}

0 comments on commit 171a744

Please sign in to comment.