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) {
|
public static WrappedGameProfile lookupGameProfile(String playerName) {
|
||||||
WrappedGameProfile gameprofile = ReflectionManager.grabProfileAddUUID(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..
|
* 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
|
||||||
* However, that should be negated in the future as I'd be able to set the watcher index's as per the spigot version.
|
* version every single packet..
|
||||||
*
|
|
||||||
* Instead of checking on the player's version every single packet..
|
|
||||||
*/
|
*/
|
||||||
public static List<WrappedWatchableObject> rebuildForVersion(Player player, FlagWatcher watcher,
|
public static List<WrappedWatchableObject> rebuildForVersion(Player player, FlagWatcher watcher,
|
||||||
List<WrappedWatchableObject> list) {
|
List<WrappedWatchableObject> list) {
|
||||||
|
@ -355,7 +355,7 @@ public class ReflectionManager {
|
|||||||
|
|
||||||
public static WrappedGameProfile getGameProfile(Player player) {
|
public static WrappedGameProfile getGameProfile(Player player) {
|
||||||
if (LibVersion.is1_7()) {
|
if (LibVersion.is1_7()) {
|
||||||
return WrappedGameProfile.fromPlayer(player);
|
return getGameProfileWithThisSkin(null, player.getName(), WrappedGameProfile.fromPlayer(player));
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user