Fix multiline names not saving properly

This commit is contained in:
libraryaddict 2022-03-22 22:45:33 +13:00
parent 4aaaa85f33
commit 1bd07cc848

View File

@ -2292,6 +2292,8 @@ public class DisguiseUtilities {
return list.toArray(new String[0]); return list.toArray(new String[0]);
}*/ }*/
public static String quote(String string) { public static String quote(String string) {
string = string.replace("\n", "\\n");
if (!string.isEmpty() && !string.contains(" ") && !string.startsWith("\"") && !string.endsWith("\"")) { if (!string.isEmpty() && !string.contains(" ") && !string.startsWith("\"") && !string.endsWith("\"")) {
return string; return string;
} }