Fix reverse not reversed

This commit is contained in:
libraryaddict 2020-05-08 03:00:43 +12:00
parent f40492b2e7
commit 944dd7243b
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -2295,10 +2295,9 @@ public class DisguiseUtilities {
ArrayList<PacketContainer> packets = new ArrayList<>();
String[] newNames =
(disguise instanceof PlayerDisguise && !((PlayerDisguise) disguise).isNameVisible()) ? new String[0] :
disguise.getMultiName();
reverse(disguise.getMultiName());
int[] standIds = disguise.getArmorstandIds();
int[] destroyIds = new int[0];
internalOldNames = DisguiseUtilities.reverse(internalOldNames);
if (internalOldNames.length > newNames.length) {
// Destroy packet