Allow disguises in 1.7.6 - 1.7.8 but no skins for players!!

This commit is contained in:
libraryaddict
2014-04-12 16:22:47 +12:00
parent c3c6a5c1c4
commit 8c2261798e
3 changed files with 11 additions and 20 deletions

View File

@@ -200,11 +200,8 @@ public class PacketsManager {
stringMods.write(i, ((PlayerDisguise) disguise).getName());
}
} else {
spawnPackets[0].getModifier().write(
1,
ReflectionManager.getGameProfile(
DisguiseUtilities.getUUID(disguise, ((PlayerDisguise) disguise).getName()),
((PlayerDisguise) disguise).getName()));
spawnPackets[0].getModifier().write(1,
ReflectionManager.getGameProfile(DisguiseUtilities.getUUID(), ((PlayerDisguise) disguise).getName()));
}
StructureModifier<Integer> intMods = spawnPackets[0].getIntegers();
intMods.write(0, disguisedEntity.getEntityId());