From 245bd5385032f834824622b31e2bf0e3527c97b2 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Thu, 28 Jul 2022 12:33:16 +0200 Subject: [PATCH] Add missing 1.19.1 chat types to config --- .../com/viaversion/viabackwards/ViaBackwardsConfig.java | 2 +- common/src/main/resources/assets/viabackwards/config.yml | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/ViaBackwardsConfig.java b/common/src/main/java/com/viaversion/viabackwards/ViaBackwardsConfig.java index 79117e79..38eb5735 100644 --- a/common/src/main/java/com/viaversion/viabackwards/ViaBackwardsConfig.java +++ b/common/src/main/java/com/viaversion/viabackwards/ViaBackwardsConfig.java @@ -54,7 +54,7 @@ public class ViaBackwardsConfig extends Config implements com.viaversion.viaback fix1_13FormattedInventoryTitles = getBoolean("fix-formatted-inventory-titles", true); alwaysShowOriginalMobName = getBoolean("always-show-original-mob-name", true); handlePingsAsInvAcknowledgements = getBoolean("handle-pings-as-inv-acknowledgements", false); - chatTypeFormats = get("chat-types", Map.class, new HashMap()); + chatTypeFormats = get("chat-types-1_19_1", Map.class, new HashMap()); } @Override diff --git a/common/src/main/resources/assets/viabackwards/config.yml b/common/src/main/resources/assets/viabackwards/config.yml index 60b68c48..285b4144 100644 --- a/common/src/main/resources/assets/viabackwards/config.yml +++ b/common/src/main/resources/assets/viabackwards/config.yml @@ -21,10 +21,12 @@ fix-formatted-inventory-titles: true # This only takes effect for ids in the short range. Useful for anticheat compatibility. handle-pings-as-inv-acknowledgements: false # -# Chat type formats used for sub 1.19 clients. -chat-types: +# 1.19.1 chat type formats. +chat-types-1_19_1: "chat.type.text": "<%s> %s" "chat.type.announcement": "[%s] %s" "commands.message.display.incoming": "%s whispers to you: %s" + "commands.message.display.outgoing": "You whisper to %s: %s" "chat.type.team.text": "%s <%s> %s" + "chat.type.team.sent": "-> %s <%s> %s" "chat.type.emote": "* %s %s" \ No newline at end of file