Fix multiline names not saving properly

This commit is contained in:
libraryaddict 2022-03-22 22:45:33 +13:00
parent 4aaaa85f33
commit 1bd07cc848
1 changed files with 2 additions and 0 deletions

View File

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