From 5ab3061b20fcf22017485eae0066de7402cc27e3 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 9 Apr 2014 04:15:19 +1200 Subject: [PATCH] Now use what we just added --- src/me/libraryaddict/disguise/utilities/PacketsManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/utilities/PacketsManager.java b/src/me/libraryaddict/disguise/utilities/PacketsManager.java index 2714369d..ba59dbd1 100644 --- a/src/me/libraryaddict/disguise/utilities/PacketsManager.java +++ b/src/me/libraryaddict/disguise/utilities/PacketsManager.java @@ -200,7 +200,11 @@ public class PacketsManager { stringMods.write(i, ((PlayerDisguise) disguise).getName()); } } else { - spawnPackets[0].getModifier().write(1, ReflectionManager.getGameProfile(((PlayerDisguise) disguise).getName())); + spawnPackets[0].getModifier().write( + 1, + ReflectionManager.getGameProfile( + DisguiseUtilities.getUUID(disguise, ((PlayerDisguise) disguise).getName()), + ((PlayerDisguise) disguise).getName())); } StructureModifier intMods = spawnPackets[0].getIntegers(); intMods.write(0, disguisedEntity.getEntityId());