Use unique uuid's for each player disguise. Prevents skinless ppl

This commit is contained in:
libraryaddict
2014-09-29 17:05:04 +13:00
parent ad788d0f5f
commit 5ab0f7e53d
2 changed files with 20 additions and 19 deletions

View File

@@ -483,7 +483,7 @@ public class DisguiseUtilities {
&& (!gameProfile.getName().equals(
disguise.getSkin() != null && LibVersion.is1_7_6() ? disguise.getSkin() : disguise.getName()) || (LibVersion
.is1_7_6() && !gameProfile.getProperties().isEmpty()))) {
// TODO Resend for UUID? Might need to in the future.
disguise.setGameProfile(gameProfile);
DisguiseUtilities.refreshTrackers(disguise);
}
}
@@ -589,9 +589,7 @@ public class DisguiseUtilities {
* This is called on a thread as it is thread blocking
*/
public static WrappedGameProfile lookupGameProfile(String playerName) {
WrappedGameProfile gameprofile = ReflectionManager.grabProfileAddUUID(playerName);
return ReflectionManager.getGameProfileWithThisSkin(null, gameprofile.getName(),
ReflectionManager.getSkullBlob(gameprofile));
return ReflectionManager.grabProfileAddUUID(playerName);
}
/**