Fix multiline names not saving properly
This commit is contained in:
parent
4aaaa85f33
commit
1bd07cc848
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user