mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-14 20:59:10 +00:00
Attempt to use the UUID from the gameprofile
This commit is contained in:
parent
06fdc16ca2
commit
708b184fa5
1 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
package me.libraryaddict.disguise.disguisetypes;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.comphenix.protocol.wrappers.WrappedGameProfile;
|
||||
|
@ -82,7 +84,8 @@ public class PlayerDisguise extends TargetedDisguise {
|
|||
|
||||
@Deprecated
|
||||
public void setGameProfile(WrappedGameProfile gameProfile) {
|
||||
this.gameProfile = ReflectionManager.getGameProfileWithThisSkin(null, getName(), gameProfile);
|
||||
this.gameProfile = ReflectionManager.getGameProfileWithThisSkin(
|
||||
gameProfile.getId() != null ? UUID.fromString(gameProfile.getId()) : null, getName(), gameProfile);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
|
|
Loading…
Reference in a new issue