Use a random uuid in gameprofiles.

This commit is contained in:
libraryaddict 2014-09-22 04:36:54 +12:00
parent 6fb750ef56
commit d64648cfbf
2 changed files with 6 additions and 7 deletions

View File

@ -580,15 +580,14 @@ public class DisguiseUtilities {
*/
public static WrappedGameProfile lookupGameProfile(String playerName) {
WrappedGameProfile gameprofile = ReflectionManager.grabProfileAddUUID(playerName);
return ReflectionManager.getSkullBlob(gameprofile);
return ReflectionManager.getGameProfileWithThisSkin(null, gameprofile.getName(),
ReflectionManager.getSkullBlob(gameprofile));
}
/**
* Please note that in the future when 'DualInt' and the like are removed. This should break..
*
* However, that should be negated in the future as I'd be able to set the watcher index's as per the spigot version.
*
* Instead of checking on the player's version every single packet..
* Please note that in the future when 'DualInt' and the like are removed. This should break.. However, that should be negated
* in the future as I'd be able to set the watcher index's as per the spigot version. Instead of checking on the player's
* version every single packet..
*/
public static List<WrappedWatchableObject> rebuildForVersion(Player player, FlagWatcher watcher,
List<WrappedWatchableObject> list) {

View File

@ -355,7 +355,7 @@ public class ReflectionManager {
public static WrappedGameProfile getGameProfile(Player player) {
if (LibVersion.is1_7()) {
return WrappedGameProfile.fromPlayer(player);
return getGameProfileWithThisSkin(null, player.getName(), WrappedGameProfile.fromPlayer(player));
}
return null;
}