Minor change

This commit is contained in:
libraryaddict 2020-10-10 07:36:09 +13:00
parent 76f3383c16
commit 107021a572

View File

@ -2873,13 +2873,12 @@ public class DisguiseUtilities {
int[] destroyIds = new int[0]; int[] destroyIds = new int[0];
if (!LibsPremium.isPremium()) { if (!LibsPremium.isPremium()) {
if (internalOldNames.length > 0) { if (internalOldNames.length > 1) {
internalOldNames = new String[]{StringUtils.join(internalOldNames, "\\n")}; internalOldNames = new String[]{StringUtils.join(internalOldNames, "\\n")};
} }
if (newNames.length > 0) { if (newNames.length > 1) {
newNames = new String[]{StringUtils.join(newNames, "\\n")}; newNames = new String[]{StringUtils.join(newNames, "\\n")};
}
if (!disguise.isPlayerDisguise() || ((PlayerDisguise) disguise).isNameVisible()) { if (!disguise.isPlayerDisguise() || ((PlayerDisguise) disguise).isNameVisible()) {
if (disguise.getMultiName().length > 1) { if (disguise.getMultiName().length > 1) {
@ -2887,6 +2886,7 @@ public class DisguiseUtilities {
} }
} }
} }
}
if (internalOldNames.length > newNames.length) { if (internalOldNames.length > newNames.length) {
// Destroy packet // Destroy packet