mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-08 09:42:56 +01:00
Fix multi-names breaking on freebies
This commit is contained in:
parent
ac2d3d8325
commit
ac574bc51c
@ -2804,14 +2804,18 @@ public class DisguiseUtilities {
|
|||||||
int[] destroyIds = new int[0];
|
int[] destroyIds = new int[0];
|
||||||
|
|
||||||
if (!LibsPremium.isPremium()) {
|
if (!LibsPremium.isPremium()) {
|
||||||
internalOldNames = new String[]{StringUtils.join(internalOldNames, "\\n")};
|
if (internalOldNames.length > 0) {
|
||||||
|
internalOldNames = new String[]{StringUtils.join(internalOldNames, "\\n")};
|
||||||
|
}
|
||||||
|
|
||||||
if (!disguise.isPlayerDisguise() || ((PlayerDisguise) disguise).isNameVisible()) {
|
if (!disguise.isPlayerDisguise() || ((PlayerDisguise) disguise).isNameVisible()) {
|
||||||
if (disguise.getMultiName().length > 1) {
|
if (disguise.getMultiName().length > 1) {
|
||||||
getLogger().info("Multiline names is a premium feature, sorry!");
|
getLogger().info("Multiline names is a premium feature, sorry!");
|
||||||
}
|
}
|
||||||
|
|
||||||
newNames = new String[]{StringUtils.join(disguise.getMultiName(), "\\n")};
|
if (disguise.getMultiName().length > 0) {
|
||||||
|
newNames = new String[]{StringUtils.join(disguise.getMultiName(), "\\n")};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
newNames = (disguise instanceof PlayerDisguise && !((PlayerDisguise) disguise).isNameVisible()) ?
|
newNames = (disguise instanceof PlayerDisguise && !((PlayerDisguise) disguise).isNameVisible()) ?
|
||||||
|
Loading…
Reference in New Issue
Block a user