From d64648cfbfe4a402fee2e4c8846ec2d99b253e06 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 22 Sep 2014 04:36:54 +1200 Subject: [PATCH] Use a random uuid in gameprofiles. --- .../disguise/utilities/DisguiseUtilities.java | 11 +++++------ .../disguise/utilities/ReflectionManager.java | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java b/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java index c3f14cd7..5dfe4402 100644 --- a/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java +++ b/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java @@ -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 rebuildForVersion(Player player, FlagWatcher watcher, List list) { diff --git a/src/me/libraryaddict/disguise/utilities/ReflectionManager.java b/src/me/libraryaddict/disguise/utilities/ReflectionManager.java index 3c80e0fc..2b8b88a3 100644 --- a/src/me/libraryaddict/disguise/utilities/ReflectionManager.java +++ b/src/me/libraryaddict/disguise/utilities/ReflectionManager.java @@ -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; }