From c7cfa9aaa52016cb423f37750ecc9473407cc5a6 Mon Sep 17 00:00:00 2001 From: PikaMug <2267126+PikaMug@users.noreply.github.com> Date: Fri, 4 Mar 2022 14:27:44 -0500 Subject: [PATCH] Correct string replacement, fixes #1890 --- api/src/main/java/me/blackvein/quests/util/Lang.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/main/java/me/blackvein/quests/util/Lang.java b/api/src/main/java/me/blackvein/quests/util/Lang.java index af6f3f45e..3e714a215 100644 --- a/api/src/main/java/me/blackvein/quests/util/Lang.java +++ b/api/src/main/java/me/blackvein/quests/util/Lang.java @@ -192,11 +192,11 @@ public class Lang { final String strAdd = allStrings.get("strAdd") != null ? allStrings.get("strAdd").replace("", cmdAdd) : missing; final String strClear = allStrings.get("strClear") != null - ? allStrings.get("strClear").replace("", cmdAdd) : missing; + ? allStrings.get("strClear").replace("", cmdClear) : missing; final String strCancel = allStrings.get("strCancel") != null - ? allStrings.get("strCancel").replace("", cmdAdd) : missing; + ? allStrings.get("strCancel").replace("", cmdCancel) : missing; final String strDone = allStrings.get("strDone") != null - ? allStrings.get("strDone").replace("", cmdAdd) : missing; + ? allStrings.get("strDone").replace("", cmdDone) : missing; final String strSpace = allStrings.get("strSpace"); final String strSemicolon = allStrings.get("strSemicolon"); for (final Entry entry : allStrings.entrySet()) {