If using multi-name, split the string and use the first line as the skin

This commit is contained in:
libraryaddict 2020-05-10 20:17:46 +12:00
parent a0398c4d02
commit 684e57827c
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -400,6 +400,14 @@ public class PlayerDisguise extends TargetedDisguise {
}
}
if (newSkin != null) {
String[] split = DisguiseUtilities.splitNewLine(newSkin);
if (split.length > 0) {
newSkin = split[0];
}
}
if (newSkin != null && newSkin.length() > 16) {
newSkin = null;
}