Now use what we just added

This commit is contained in:
libraryaddict 2014-04-09 04:15:19 +12:00
parent 91623b8886
commit 5ab3061b20

View File

@ -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<Integer> intMods = spawnPackets[0].getIntegers();
intMods.write(0, disguisedEntity.getEntityId());