mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-15 15:28:36 +01:00
Use a random uuid in gameprofiles.
This commit is contained in:
parent
6fb750ef56
commit
d64648cfbf
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user