Fix multi-names breaking on freebies
This commit is contained in:
		| @@ -2804,15 +2804,19 @@ public class DisguiseUtilities { | |||||||
|         int[] destroyIds = new int[0]; |         int[] destroyIds = new int[0]; | ||||||
|  |  | ||||||
|         if (!LibsPremium.isPremium()) { |         if (!LibsPremium.isPremium()) { | ||||||
|  |             if (internalOldNames.length > 0) { | ||||||
|                 internalOldNames = new String[]{StringUtils.join(internalOldNames, "\\n")}; |                 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!"); | ||||||
|                 } |                 } | ||||||
|  |  | ||||||
|  |                 if (disguise.getMultiName().length > 0) { | ||||||
|                     newNames = new String[]{StringUtils.join(disguise.getMultiName(), "\\n")}; |                     newNames = new String[]{StringUtils.join(disguise.getMultiName(), "\\n")}; | ||||||
|                 } |                 } | ||||||
|  |             } | ||||||
|         } else { |         } else { | ||||||
|             newNames = (disguise instanceof PlayerDisguise && !((PlayerDisguise) disguise).isNameVisible()) ? |             newNames = (disguise instanceof PlayerDisguise && !((PlayerDisguise) disguise).isNameVisible()) ? | ||||||
|                     new String[0] : reverse(disguise.getMultiName()); |                     new String[0] : reverse(disguise.getMultiName()); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user