mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2025-02-21 02:31:59 +01:00
Fix mispelled profile error
This commit is contained in:
parent
ca2ccaf67f
commit
5d5df0ed7c
@ -18,6 +18,7 @@ import com.comphenix.protocol.wrappers.WrappedWatchableObject;
|
|||||||
import com.comphenix.protocol.wrappers.nbt.NbtWrapper;
|
import com.comphenix.protocol.wrappers.nbt.NbtWrapper;
|
||||||
import com.mojang.authlib.GameProfile;
|
import com.mojang.authlib.GameProfile;
|
||||||
import com.mojang.authlib.minecraft.MinecraftSessionService;
|
import com.mojang.authlib.minecraft.MinecraftSessionService;
|
||||||
|
import com.mojang.authlib.yggdrasil.ProfileResult;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.SneakyThrows;
|
import lombok.SneakyThrows;
|
||||||
import me.libraryaddict.disguise.DisguiseConfig;
|
import me.libraryaddict.disguise.DisguiseConfig;
|
||||||
@ -1397,7 +1398,13 @@ public class ReflectionManager {
|
|||||||
public static WrappedGameProfile getSkullBlob(WrappedGameProfile gameProfile) {
|
public static WrappedGameProfile getSkullBlob(WrappedGameProfile gameProfile) {
|
||||||
try {
|
try {
|
||||||
if (fillProfileProperties == null) {
|
if (fillProfileProperties == null) {
|
||||||
return WrappedGameProfile.fromHandle(sessionService.fetchProfile(gameProfile.getUUID(), true).profile());
|
ProfileResult result = sessionService.fetchProfile(gameProfile.getUUID(), true);
|
||||||
|
|
||||||
|
if (result == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return WrappedGameProfile.fromHandle(result.profile());
|
||||||
}
|
}
|
||||||
|
|
||||||
return WrappedGameProfile.fromHandle(fillProfileProperties.invoke(sessionService, gameProfile.getHandle(), true));
|
return WrappedGameProfile.fromHandle(fillProfileProperties.invoke(sessionService, gameProfile.getHandle(), true));
|
||||||
|
Loading…
Reference in New Issue
Block a user